I've just upgraded Qt from 5.3.2 to 5.5.0. A project (which uses QAbstractTableModel) which compiles just fine in 5.3.2 does not compile in 5.5.0, reporting the following error (numerous times):
/usr/local/Qt-5.5.0/include/QtCore/qabstractitemmodel.h:241: error: ISO C++ forbids declaration of 'Q_ENUM' with no type [-fpermissive]
Q_ENUM(LayoutChangeHint)
^
The errors are entirely in Qt's files, not mine. I'm using gcc491. Below is a few interesting bits from my project file. Any ideas?
TEMPLATE = app
TARGET = MyApp
QT += core widgets gui
QMAKE_CXXFLAGS += -g -std=c++11
Bonehead move. In QtCreator I pointed to the 5.5.0 version of qmake, but in the .project file 5.3.2 was still in the INCLUDEPATH.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With