Question about QT

Hello,

Yesterday I downloaded QT (For windows).
I installed it and compiled it and everything was OK.

now, when I am trying to include classes of QT, my IDE(I am using codeblocks IDE)
isn't recognizing it.

anyone know what to do?

thanks for the helpers.
Last edited on
humm... anyone know what to do...?
while I use Qt, I don't use codeblocks.
Using QT is fairly straightforward, but it has a couple of QT specific steps that need to be taken in order to compile a QT based program (namely the UI compiler and the MOC compiler).
In order to use QT with codeblocks IDE - you may need to seek out a QT Plugin for Codeblocks.

here is some information on one such plugin
http://forums.codeblocks.org/index.php/topic,2253.0.html
I've just downloadd and installed Codeblocks.
It already has support for QT4 projects built in.

I already had mingw compiler (c:\mingw directory), and GDB debugger installed (c:\gdb directory). It autodetected mingw with no problem.

I did File -> New -> project -> qt4 project.
It asked me where QT4 was installed - I told it and it did a default QT4 main.cpp file which compiled and ran without a hitch.


have you got mingw compiler and gdb debugger installed ?
It worked.
thanks a lot.
humm
look,
now I opend a QT4 project.
I told him where QT4 installed..
anyway , it automatic creating in the project a main file , and that main file contains some QT code...
when I compile the main.cpp file with the QT code , everything is ok.

but when I add my files with the QT code to the project , it didnt find the location of the QT ...

take a look

http://img110.imageshack.us/img110/6982/22029794zf2.jpg

any clue what should I do..?
from the menu go Project->Properties.
On the dialogbox (down toward the right hand side bottom) there is a
button called Project build options. This will bring up another
dialogbox.
On this second dialog there is a set of tabs - Compiler Settings, Linker settings, Search Directories, ....
Select Search Directories. You will see a list of include directories to search.
One called QtGui will probably already be listed.
You will need to add QtCore because a lot of the standard QT header stuff like QString is in the QtCore include directory.
ps
In the Linker Settings tab - you also need to ensure that the QtCore4 library name is listed.

Okay , i will try it.
thanks a lot again.

edit:
it worked.

Thanks a lot , you really helped me.
thank you.
Last edited on
Topic archived. No new replies allowed.