On 12 Jul 2014, at 10:03 AM, Martin Koller wrote: > Hi, > > is there any possibility to use an enum in the Q_ENUMS macro when the enum is > not > defined in a QObject derived class ? > (Specifically I'm trying to do that with QSslError::SslError)
The Qt namespace has a lot of enums like that. The trick there is to get moc to pretend that the namespace is actually a class. src/corelib/global/qnamespace.h (But the fact that it is not a class is perhaps only historical… does anybody know more?) _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest