0
我正在准备一个使用Qt的简单GUI,但是我在添加一些快捷方式到QAction项目时遇到了问题。我有这样的事情:QAction快捷方式无法将空间设置为热键
QAction* playAction = new QAction(playIcon, "Play", this);
playAction->setShortcuts(QKeySequence::fromString("SPACE"));
但这一切,我在编译过程中收到的是:
没有匹配函数调用 '的QAction :: setShortcuts(QKeySequence)' playAction-> setShortcuts( QKeySequence :: fromString( “SPACE”));
我错过了什么吗?