[Qt-creator] Problems console application and Q_OBJECT
Ladnar, Marc
Marc.Ladnar at ksab.kroschu.com
Thu May 14 07:04:48 CEST 2009
Hi Petric,
it is a common Qt qmake problem.
Qmake is not called until the .pro has not changed. But qmake is the
tool generating the Makefile commands for moc compiling.
So you will have to do it in QtCreator like as in Qt itself. I think
there will be no patch for QtCreator to solve this problem because it is
located in qmake and Makefile.
It could only be solved when in Makefile the qmake command not only gets
called when the .pro file changed but when every project header changed,
too. On bigger projects this will get very annoying.
The programmer himself does know when to run qmake again because he
added the Q_OBJECT macro into his header.
Hope that makes it a little clearer to you.
Have a nice day,
Marc
-----Ursprüngliche Nachricht-----
Von: Petric Frank [mailto:pfrank at gmx.de]
Gesendet: Mittwoch, 13. Mai 2009 20:25
An: qt-creator at trolltech.com
Betreff: Re: [Qt-creator] Problems console application and Q_OBJECT
Hello,
On Mittwoch, 13. Mai 2009, Andre Poenitz wrote:
> On Wed, May 13, 2009 at 01:06:04AM +0200, Petric Frank wrote:
> > i try to create a console application under Windows. The problem is
> > that it does not create/update the moc_* files whenver a slot have
> > been added. If i manually execute qmake and mingw32_make then i get
> > the files created/updated.
>
> That's a known problem, and running qmake manually is indeed the
> recommended workaround.
Ok, good to know.
Hopefully there is already a fix in the repository for it.
regards
Petric
_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list