Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: testalucida on December 17, 2006, 10:39:36 pm

Title: Qt / Code::Blocks: .qrc and .ui - files
Post by: testalucida on December 17, 2006, 10:39:36 pm
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
Code
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
Title: Re: Qt / Code::Blocks: .qrc and .ui - files
Post by: Game_Ender on December 18, 2006, 12:55:58 am
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. (http://forums.codeblocks.org/index.php?topic=2253.0)
Title: Re: Qt / Code::Blocks: .qrc and .ui - files
Post by: testalucida on December 18, 2006, 08:34:33 am
thank you, I'll try the QtWorkbench