Author Topic: Qt / Code::Blocks: .qrc and .ui - files  (Read 6125 times)

Offline testalucida

  • Multiple posting newcomer
  • *
  • Posts: 14
Qt / Code::Blocks: .qrc and .ui - files
« 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

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Qt / Code::Blocks: .qrc and .ui - files
« Reply #1 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.

Offline testalucida

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Qt / Code::Blocks: .qrc and .ui - files
« Reply #2 on: December 18, 2006, 08:34:33 am »
thank you, I'll try the QtWorkbench