Compiler says that emit keyword is undeclared
Unsolved
General and Desktop
-
I have a class that inherits from QAbstractTableModel, like this:
MessagesModel::MessagesModel(LogData* logData, QObject* parent) : QAbstractTableModel(parent) { }
Somewhere in this class I need to emit the dataChanged signal, but the compiler does not understand the emit !
I have no clue what I am doing wrong. The .h file starts with the correct includes etc:#include <QAbstractTableModel> class MessagesModel : public QAbstractTableModel { Q_OBJECT
-
Hi,
Did you disable the Qt keywords in your .pro file ?
-
Does it happen only in that class ?