Создаю простейший класс:
class myQCheckListItem : public QCheckListItem
{
Q_OBJECT
public:
myQCheckListItem ( QListViewItem *li, const QString & text ) : QCheckListItem( li, text, QCheckListItem::CheckBox ) {};
virtual ~myQCheckListItem() {};
};
Компилятор пишет:
.moc/moc_mon_dialog.cpp: In static member function `static QMetaObject* myQCheckListItem::staticMetaObject()':
.moc/moc_mon_dialog.cpp:54: error: `staticMetaObject' is not a member of `QCheckListItem'
.moc/moc_mon_dialog.cpp: In member function `virtual void* myQCheckListItem::qt_cast(const char*)':
.moc/moc_mon_dialog.cpp:72: error: `qt_cast' is not a member of `QCheckListItem'
.moc/moc_mon_dialog.cpp: In member function `virtual bool myQCheckListItem::qt_invoke(int, QUObject*)':
.moc/moc_mon_dialog.cpp:77: error: `qt_invoke' is not a member of `QCheckListItem'
.moc/moc_mon_dialog.cpp: In member function `virtual bool myQCheckListItem::qt_emit(int, QUObject*)':
.moc/moc_mon_dialog.cpp:82: error: `qt_emit' is not a member of `QCheckListItem'
.moc/moc_mon_dialog.cpp: In member function `virtual bool myQCheckListItem::qt_property(int, int, QVariant*)':
.moc/moc_mon_dialog.cpp:88: error: `qt_property' is not a member of `QCheckListItem'
Что не так?