[QBS] Suspicious URL:Re: Suspicious URL:Re: [Interest] QBS automoc

Christian Kandeler christian.kandeler at digia.com
Tue Jun 4 18:37:55 CEST 2013

On 06/03/2013 04:56 PM, Иван Комиссаров wrote:
>> The file name moc_qcolorbutton.cpp suggests that it is generated from
>> qcolorbutton.h. Do you have the Q_OBJECT macro in both, the .h and
>> .cpp file? Could you maybe provide some small example?
> I tried both moc_qcolorbutton.cpp and qcolorbutton.moc, however none
> works. Here's a simple example: http://mtgs.clan.su/qbs-colorbutton.zip

Your example works for me out of the box.Including qcolorbutton.moc 
cannot work, since this file is only generated if the cpp file declares 
a class using Q_OBJECT.


More information about the Qbs mailing list