assistant中是这样定义的
void QAction::triggered ( bool checked = false ) [signal]
This signal is emitted when an action is activated by the user; for example, when the user clicks a menu option, toolbar button, or presses an action's shortcut key combination, or when trigger() was called. Notably, it is not emitted when setChecked() or toggle() is called.
connect(qaction, SIGNAL(triggered()), this, SLOT(open()));可以使用,但是
connect(qaction, SIGNAL(triggered(false)), this, SLOT(open()));就不行了,定义中的参数是默认参数false,为什么加false就不可以了呢?
拜托了!