|
Yup you’re right. There is a bug in Qt 4.6.2 moc compiler when it creates a meta file for QMetaObject. I managed to fix the problem. You can still use the Qt 4.6.2 moc compiler but you have to change the following from the moc_TurntableDialog.cpp. See below.
1) Change revision from 4 to 2 and methods from 14 to 12.
QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_TurntableDialog[] = {
// content:
2, // revision changed from 4 to 2
0, // classname
0, 0, // classinfo
1, 12, // methods changed from 14 to 12
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
// slots: signature, parameters, type, tag, flags
17, 16, 16, 16, 0x0a,
0 // eod
};
2) Commented these lines :
/ * #ifdef Q_NO_DATA_RELOCATION
const QMetaObject &TurntableDialog::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION */
3) Changed these lines :
const QMetaObject *TurntableDialog::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
To these lines :
const QMetaObject *TurntableDialog::metaObject() const
{
return &staticMetaObject;
}
That’s all.
|