Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
changed qt 4 to qt 5
cimer84 last edited by koahnig
I have a problem when I compilation my code. I changed qt4 to qt5 and I have this error:
In file included from /usr/local/Trolltech/Qt-5/include/QtWidgets/QHeaderView:1:0, from ./gen/ui_LrwMonitoringAlarmsAndWarnings.h:21, from LrwMonitoringAlarmsAndWarnings.cpp:2: /usr/local/Trolltech/Qt-5/include/QtWidgets/qheaderview.h:228:10: error: ‘void QHeaderView::dataChanged(const QModelIndex&, const QModelIndex&, const QVector<int>&)’ marked override, but does not override void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int>()) Q_DECL_OVERRIDE;
Can anyone help me please??
[edit koahnig: code tags added]
m.sue last edited by m.sue
this looks like an internal Qt error, but maybe you use something for what it is not meant to be used, like wrong compiler or OS.
Which Qt version, anyway? Where did you get it from? Built it yourself, then which configure line?
Please also show the file of yours where this error occurs.