[Development] moc 4.8.6 & macros
Samuel Gaist
samuel.gaist at edeltech.ch
Thu Sep 11 21:44:15 CEST 2014
On 11 sept. 2014, at 20:50, Thiago Macieira <thiago.macieira at intel.com> wrote:
> 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.
>
The thing is, it's not even a #ifdef, it's only a #if
What would be the correct procedure to handle QT_DEPRECATED_SINCE ? Removing it from around the signal declaration would make the code a bit inconsistent.
By the way, how is it handled in Qt 5 since building goes without any problem even with the macros around the signal ?
More information about the Development
mailing list