News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Qt GUI support within CodeBlocks

Started by wonopon, November 23, 2011, 02:27:31 AM

Previous topic - Next topic

wonopon

Hey, I would like to know if it's possible to write the code for a Qt GUI app within CodeBlocks, and be able to compile it. I can't seem to be able to get Qt scripts compiled on my CodeBlocks (I DONT MEAN DESIGNING THE GUI!) Even after  I included all of the Qt include folders, the error message still appears that there is no such file or directory. Can anyone please give me a quick guide on how to properly set up CodeBlocks to be able to compile Qt scripts? thank you so much :)

Alpha

If you create a QT project from the included Code::Blocks template, does it work?

scarphin

Source files including the 'Q_OBJECT' or something like that need to be compiled by the 'moc' compiler of Qt. So when u start to build, compiler can't find the file that should have been already compiled by 'moc' compiler. There was a solution on the forum somewhere which was to adjust compilation priorities and add appropriate custom compile commands to make the file ready before the compiler starts looking for it.