On May 14, 2009, at 11:07 PM, ext Petric Frank wrote:

> Hello Marc,
>
> On Donnerstag, 14. Mai 2009, Ladnar, Marc wrote:
>> 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.


Another solution would be to have support in the IDE for it. At least  
as long as you actually edit files in the IDE, that can find out if  
you added a Q_OBJECT macro. It's somewhere on the big TODO list...

>
> In my case i wasn't aware of that - hence the question.
> I saw some vtable errors at link time. After some digging i got the  
> idea that
> moc_* files were missing resulting in this thread.
>
> Maybe somewhere in the docs this (add Q_OBJECT in the source --> run  
> qmake)
> should be stated prominently. I haven't found such a hint in the  
> docs myself.
>
>> Hope that makes it a little clearer to you.
>
> A lot. For me the issue is solved now.
>
>> Have a nice day,
>
> Same to you.
>
> regards
>  Petric
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail [email protected]




_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to