开发者

How to Remove Toolbar from QToolBox control in Qt?

How to R开发者_Python百科emove Toolbar from QToolBox in Qt?

Normal Toolbox looks like this:

How to Remove Toolbar from QToolBox control in Qt?

I want to remove this button written with Page 1. Something like this :

How to Remove Toolbar from QToolBox control in Qt?


I'm not sure if this makes much sense, since those buttons are needed for the functionality of the QToolBox. If you want a stack of widgets for which you can manually control if they are shown or not, then QStackedWidget provides similar functionality without displaying any elements of its own.

edit: No, as the QToolBox it doesn't come with a scrollbar. But since you 'fill' it with widgets of your own, which then are displayed with setCurrentWidget, you can use for example QScrollArea and placing your own widgets inside it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜