QT-error: no matching function for call to (lambda表达式)
程序员文章站
2022-03-30 21:58:41
...
完整的错误提示:
D:\qt\code\test3_single\widget.cpp:51: error: no matching function for call to
'Widget::connect(QPushButton*&, void (QAbstractButton::*)(bool), Widget*, Widget::Widget(QWidget*)::<lambda()>)'
});
^
解决方案:
1、在pro文件中加入:
CONFIG += c++11
2、如果未解决参考:https://blog.csdn.net/jackie_bryant/article/details/52195429
推荐阅读
-
Qt报错:error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)
-
Qt 信号与槽使用错误 :error: no matching function for call to ‘connect‘
-
QT编程错误解决——error: no matching function for call to
-
[Error] no matching function for call to ‘isalpha(std::&)‘解决
-
QT-error: no matching function for call to (lambda表达式)
-
Qt5:error: no matching function for call to 'MainWindow::connect()
-
error: no matching member function for call to 'connect'
-
QT编译报错:error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)....
-
Error:no matching function for call to......&leetcode2
-
error: no matching function for call to ‘CameraSaveImage‘