*.cpp //带参数的拉姆达表达式 connect(this,&Widget::mySignal,[=](int count) { qDebug()<<count; }); mySignal(123456);
*.h signals: void mySignal(int count);
注意:要在pro文件中加上 CONFIG += C++11
Copyright © 2024 yacbo Powered by .NET 8.0 on Kubernetes