News:

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

Main Menu

Qt / Code::Blocks: .qrc and .ui - files

Started by testalucida, December 17, 2006, 10:39:36 PM

Previous topic - Next topic

testalucida

Hi,

I'm using QT 4.2.2, MinGW and Code::Blocks Build from Dec,13 2006.

To use images in my application, I have to create a file named <name>.qrc. No problem.
But how integrate this .qrc-file into my application? Do I have to compile the qrc-file into a .rcc-file? I tried, but the call to macro

Q_INIT_RESOURCE( <name of the .qrc-file without suffix> );

failed.

Same problem with .ui-files: I create them with Qt-Designer. But how to integrate them into my Code::Blocks-Project?

The book says: insert RESOURCE- and FORMS - entries into the <project name>.pro - file. But where is this file? I can't find it, nor the
Makefile.Debug resp. Makefile.Release - files. Doesn't Code::Blocks need those files anymore?

Thanks for your help in advance
testalucida

Game_Ender

Code::Blocks doesn't use Makefiles.  You have to do what those steps the makefiles would do in the pre-build steps of each target.  You could also try using the QtWorkbench plugin.

testalucida