Peter Kümmel wrote: > > http://lists.trolltech.com/qt-interest/2006-05/thread00319-0.html > http://lists.trolltech.com/qt-interest/2000-10/msg00401.html > > A solution would be to have two header files, and to include the header > and moc file in a #if block.
I'm wrong, moc is better now. Here (4.3) this macro check works: #if (QT_VERSION >= QT_VERSION_CHECK(4, 2, 0)) -- Peter Kümmel