User forums > Using Code::Blocks

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

(1/1)

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

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

--- End code ---
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:
thank you, I'll try the QtWorkbench

Navigation

[0] Message Index

Go to full version