[Development] Q_OBJECT and "override"

Christian Kandeler christian.kandeler at theqtcompany.com
Thu Jun 4 17:02:52 CEST 2015


On 06/04/2015 04:52 PM, Konstantin Ritt wrote:
> #define  Q_OBJECT  \
>
> public:  \
>
>      Q_OBJECT_CHECK  \
>
>      QT_WARNING_PUSH  \
>
>      Q_OBJECT_NO_OVERRIDE_WARNING  \
>
>      static  const  QMetaObject  staticMetaObject;  \
>
>      virtual  const  QMetaObject  *metaObject()  const;  \
>
>      virtual  void  *qt_metacast(const  char  *);  \
>
>      virtual  int  qt_metacall(QMetaObject::Call,  int,  void  **);  \
>
>      QT_WARNING_POP  \

Oh, this is already in 5.5... I overlooked it somehow. Well, that makes 
this thread kinda pointless. Sorry about the noise (if the construct 
above indeed works).


Christian



More information about the Development mailing list