Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Using CB to develop Qt application

(1/3) > >>

liweifuj:
Hello,

Just download this CB RC2(with MINGW), now want to use it to design Qt application, but due to not familiar with CB environment, hope can get an advise to configure the work. My OS is windows XP, Qt edition is 4.0. Thanks.


David

yop:
You can search the forum for some answers to your question (search for qt and qmake ;))

liweifuj:
Hi Yop,

Since the RC2 has included Qt project, I'd like to know how to configure the edit and compile environment. Because I find there 2 compile settings , one in the Build menu, and the other in Settings menu. Please advise which compile environment configure is must be done, how to import qmake . thanks.

sethjackson:

--- Quote from: liweifuj on November 27, 2005, 01:59:23 am ---Hi Yop,

Since the RC2 has included Qt project, I'd like to know how to configure the edit and compile environment. Because I find there 2 compile settings , one in the Build menu, and the other in Settings menu. Please advise which compile environment configure is must be done, how to import qmake . thanks.

--- End quote ---

The one in the settings menu is global the one in the build menu is for your current project only.

yop:
Write a custom .pro file for your project and sav it in the project dir. See http://doc.trolltech.com/4.0/qmake-manual.html
In tools menu add a tool:
Name: QMake
Executable: QTDIR/bin/qmake   (replace QTDIR)
Parameters: -o Makefile.qmake   (or whatever name you want)
Working Dir: ${PROJECTDIR}

In Settings->Compiler Settings->Other select "build using makefiles" (not sure if needed anymore)
In Project->Properties tick "This is a custom makefile" and write Makefile.qmake in the Makefile:

Now select Tools->QMake and then Build->Build and voila
Be warned that you overide the whole build system of codeblocks and that you have to write the .pro file yourself (qmake can also generate one for you but I like writing my own).

And as of my Qt plugin status it can build :) I am almost finished with the .pro generator and from there on it's all about making it user friendly ;)

Navigation

[0] Message Index

[#] Next page

Go to full version