QObject::connect: Parentheses expected, signal QAction::triggered in ..
作者:互联网
提示信息:
QObject::connect: Parentheses expected, signal QAction::triggered in ..
QObject::connect: (receiver name: 'MainWindow')
且槽函数未执行。
原因:信号语句中少了括号(猪心大姨),应该写成
connect(openAct,SIGNAL(triggered()),this,SLOT(open()));
connect(newAct,SIGNAL(triggered()),this,SLOT(newEvent()));
标签:SLOT,Parentheses,..,triggered,QObject,connect,expected 来源: https://www.cnblogs.com/Ada-CN/p/16600849.html