开发者

some question about Qt Creator widget

could you help me?

First: How can I make the size of main window in Qt Creator fixed,so users can not maximize?. I set resize propriet开发者_Python百科y to ( fixed ) but I still run the project and maximize it .

Second: How can keep ToolBar fixed in one location? I do not want change its location by users.

Third: How can make an item in QMenu Not checkable if another item is check? Like radioButton and make one item as default.

Thank you in Advance.


First: apply the same size to maximumSize and minimumSize (window->setMinimumSize(size), window->setMaximumSize(size))

Second: use the QToolBar's setMovable() method: toolbar->setMovable(false);

Third: Implement a slot that listens to the action's changed() signal, and calls the other action's setCheckable() method, passing false as an argument: actionToBeDisabled->setCheckable(false);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜