[Qt-interest] conflict with boost signals when running moc

Jeroen De Wachter jeroen.dewachter at barco.com
Fri Mar 19 10:10:52 CET 2010


Hey Peter,

We had a similar issue with an in-house signal/slot module conflicting 
with Qt's 'emit' keyword

We also use - DQT_NO_KEYWORDS and use the upper case versions for those 
keywords.
signals becomes Q_SIGNALS, slots becomes Q_SLOTS, emit becomes Q_EMIT, etc.
The Qt library sources work with the upper case versions too, btw

Maybe this could work for you as well.

Kind regards,

Jeroen

Oliver.Knoll at comit.ch wrote:
> Peter wrote on Friday, March 19, 2010 9:19 AM:
>
>   
>> ...
>> Is there any way to get through the moc generation without
>> conflicting with boost::signals? 
>>     
>
> An exhaustive 10 second google research(tm) came up with the following:
>
> FAQ: "3. How do I get Boost.Signals to work with Qt?"
>
> http://www.boost.org/doc/libs/1_42_0/doc/html/signals/s04.html#id1694739
>
> ;)
>
> Cheers, Oliver
>   





More information about the Qt-interest-old mailing list