[Interest] qt4.8.0 #ifdef Q_REVISION around Q_PROPERTY - build fails on win mingw

Alex Malyushytskyy alexmalvtk at gmail.com
Tue Dec 20 00:31:17 CET 2011


I don't have recent versions of Qt installed,
but I don't think  Q_REVISION is a globally available
This might be problem #1
Problem #2 might be moc pre-processor restrictions - afaik it does not
expand macros.

Alex



On Mon, Dec 19, 2011 at 7:36 AM, Frank Hemer <frank at hemer.org> wrote:
> I wonder what the defines around Q_PROPERTY macros are good for?
>
> @see here: 3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview_p.h
>
> #ifdef Q_REVISION
>    Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE
> setBackgroundColor NOTIFY backgroundColorChanged REVISION 1)
> #endif
>
> It seems the moc preprocessor skips these ifdefs and thus the win mingw build
> fails complaining about a missing signal implementation ...
>
> Frank
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list