[Development] moc 4.8.6 & macros

Thiago Macieira thiago.macieira at intel.com
Thu Sep 11 20:50:35 CEST 2014


On Thursday 11 September 2014 18:28:58 Samuel Gaist wrote:
> Hi,
> 
> I've stumbled on https://bugreports.qt-project.org/browse/QTBUG-41190 which
> states that QtSerialPort cannot be built with Qt 4.8.6.
> >From a quick look and build, it's the use of the QT_DEPRECATED_SINCE macro
> >around the signals that makes moc miss them and thus the compilation
> >fails.
> Is there something that can be done outside of moc to workaround the problem
> ? Or does moc need to be improved ?

NEVER #ifndef signals and slots, unless it's a simple #ifdef/#ifndef and the 
#define is present in the source file being processed.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list