Windows: C++ does not support default-int
Unsolved
General and Desktop
-
void MainWindow::keyPressEvent(QKeyEvent *event) { qDebug() << event; ui->statusBar->showMessage(event->text()); if (event->key() == Qt::Key_Escape) { ui->pushButton_Esc->setChecked(true); } .... }
Linux has no error.
Windows error:
moc_mainwindow.cppQT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data, qt_meta_data_MainWindow, qt_static_metacall, nullptr, nullptr} };
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
-
You should indicate for which line the error is output.
I would assume that it is
qDebug() << event;
You are simply trying to output an address there. That is probably open to debate if you want to treat as error or not.
If you are really interested in the address only, than cast it as an integer.