[Qt-interest] 'staticMetaObject' is not a member of 'QMetaType'

Jason H scorp1us at yahoo.com
Mon Oct 24 22:44:03 CEST 2011


Appearently defining a function in a class as:

QMetaType::Type typeId();

is not kosher to the MOC. Any idea why? I'm just trying to return the enum's int value.


 
----- Original Message -----
From: Jason H <scorp1us at yahoo.com>
To: "qt-interest at qt.nokia.com" <qt-interest at qt.nokia.com>
Cc: 
Sent: Monday, October 24, 2011 2:03 PM
Subject: [Qt-interest] 'staticMetaObject' is not a member of 'QMetaType'

I've been using Qt for years and never come across this one.
 
That error is being caused by a line in a moc_.cpp file 
staticconstQMetaObject*qt_meta_extradata_DbParameter[]={&QMetaType::staticMetaObject, };
 
The class being fed to MOC looks like, in part:
classParameter:publicQObject
{
Q_OBJECT
 
Q_PROPERTY(...)
Q_ENUMS()
etc...
}
 
I don't why that line is in error as it has 0 content dependent on me. Can anyone help? I've done a clean, distclean, reran qmake and it still persists
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list