error: Cannot take the address of an rvalue of type ‘void’
对菜单按钮执行调用函数功能:
connect(helpAction, &QAction::triggered, this, &Dialog::openPdfFile());
编译出错:Cannot take the address of an rvalue of type ‘void’
修改如下即可:
connect(helpAction, &QAction::triggered, this, &Dialog::openPdfFile);