当前位置: 代码迷 >> 综合 >> Object::connect: Parentheses expected, signal QAction::activated
  详细解决方案

Object::connect: Parentheses expected, signal QAction::activated

热度:30   发布时间:2023-12-13 12:03:51.0

Object::connect: Parentheses expected, signal QAction::activated

Object::connect: (receiver name: 'MainWindow')

这是提示你,语句中少了括号啊!

像这样:

 connect(print,SIGNAL(activated),this,SLOT(print()));

其实应该被写成:

 connect(print,SIGNAL(activated()),this,SLOT(print()));


  相关解决方案