QActionGroup
一个QAction不能同时存在于两个QActionGroup
QAction
发现QAction按下去弹不起来
if you write an QAction in an actiongroup
QActionGroup group->addAction(action);
action->setChecked(true);
then that action can not toggled,cos QActionGroup is default exclusive
so, do:
actionGroup->setExclusive(false);
and the action could be toggled now
QObject
No Copy Constructor or Assignment Operator
QObject has neither a copy constructor nor an assignment operator. This is by design. Actually, they are declared, but in a private section with the macro Q_DISABLE_COPY(). In fact, all Qt classes derived from QObject (direct or indirect) use this macro to declare their copy constructor and assignment operator to be private. The reasoning is found in the discussion on Identity vs Value on the Qt Ob