QPushButton *b=new QPushButton(this) //this是指定这个类为父对象
用一般信号和槽函数:
connect(b, &QPushButton::released,this,&myWidght::close)
在使用Lamda表达式时,需要在项目文件.pro中加上
CONFIG += C++11
用Lamda表达式来作为槽函数:
connect(b
QPushButton *b=new QPushButton(this) //this是指定这个类为父对象
用一般信号和槽函数:
connect(b, &QPushButton::released,this,&myWidght::close)
在使用Lamda表达式时,需要在项目文件.pro中加上
CONFIG += C++11
用Lamda表达式来作为槽函数:
connect(b