Имеется такой вот код. Не могу унаследовать вперемешку с QDialog и Ui::test свой класс Abstract. Без него всё компилируется, а с ним ошибка.
moc_video_lavc.cpp:39: error: ‘staticMetaObject’ is not a member of ‘AbstractVideoPlugin’ moc_video_lavc.cpp: In member function ‘virtual void* PluginLavcVideo::qt_metacast(const char*)’: moc_video_lavc.cpp:57: error: ‘qt_metacast’ is not a member of ‘AbstractVideoPlugin’ moc_video_lavc.cpp: In member function ‘virtual int PluginLavcVideo::qt_metacall(QMetaObject::Call, int, void**)’: moc_video_lavc.cpp:62: error: ‘qt_metacall’ is not a member of ‘AbstractVideoPlugin’
test.h
#include <QDialog>
#include "ui_test.h"
class Abstract{};
class Test: public Abstract, public QDialog, public Ui::test
{
Q_OBJECT
public:
Test(QWidget *parent = 0);
};
test.cpp
#include <QtGui>
#include "test.h"
Test::Test(QWidget *parent)
:QDialog(parent)
{
setupUi(this);
}