1Qter豆
最佳答案QWidget * MyAction::createWidget(QWidget *parent);
看这结构,是MyAction类的QWidget * createWidget(QWidget *parent);类成员函数
应该是他内部自己调用。
就好比closeEvent事件,关闭的时候他是自己内部调用
QWidget * QWidgetAction::createWidget ( QWidget * parent ) [virtual protected]
This function is called whenever the action is added to a container widget that supports custom widgets. If you don't want ...
| ||
相关帖子
|
||
2014-6-17 09:51:13
显示全部楼层
| ||
2014-6-17 18:46:50
显示全部楼层
| |