Qt error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)

Error in QT compilation:

error: no matching function for call to 'MainWindow::connect(QAction*&, void (QAction::*)(bool), MainWindow* const, MainWindow::MainWindow(QWidget*)::__lambda0)'});

Error reason: QT software version is too low, lower than qt5.4.

Solution: add code to. Pro file:

CONFIG   += C++11

Problem solving.


Read More: