Hi, I have been faced with an awkward situation when building an app for android:
My app uses Bonjour but that is not available on Android, so basically for android I don’t want to include some slots in a particular class: #ifndef Q_OS_ANDROID void recordAdded(const BonjourRecord &record); void recordRemoved(const BonjourRecord &record); void bonjourRecordResolved(const QHostInfo &hostInfo, int port); #endif When compiling for Android, moc file as complaining about not having the implementation of the methods above which means that the preprocessor has passed over Q_OS_ANDROID, however, QtCreator had that area greyed out. Is Q_OS_ANDROID available at the time the header file is processed for moc generation? to avoid this situation? Thanks, Regards, Nuno _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest