[Interest] Q_ENUMS with foreign enum ?
Rutledge Shawn
Shawn.Rutledge at digia.com
Mon Jul 14 11:11:06 CEST 2014
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?)
More information about the Interest
mailing list