完整的错误提示:
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