Home > other >  Make a TAB hidden QTabWidget
Make a TAB hidden QTabWidget

Time:04-16

I use the widgets (index) -> hide (); But no, it's just to hide away and TAB to what's inside the TAB itself is still there, ask you to do?

CodePudding user response:

This I also want to know, ha ha, how can check it in the source code, think it over again,

CodePudding user response:

I want to hide the TAB page of widgets and displays on each page? How can I achieve? thank you

CodePudding user response:

Void QTabWidget: : removeTab (int index) to remove this page, if you still want to add: int QTabWidget: : addTab (QWidget * page, const QString & amp; Label) put your page in a whole QWidget,

CodePudding user response:

Remove add to come in, there is a page of the ah, I don't want to show every page of the page, please master know how to do? thank you

CodePudding user response:

Simply use QStackedWidget and several ToolButton I got simulation,

CodePudding user response:

If you change the TAB value, like Excel can modify, how to implement? Does anyone know

CodePudding user response:

TabWidget - & gt; Clear () and then according to the need to add

CodePudding user response:

Actually it is ok to use QStackWidget,

CodePudding user response:

Moderators, if done

CodePudding user response:

Remove is not show, but still exist

CodePudding user response:

Qt provides the call interface, UI - & gt; TabWidget - "setTabVisiable (0, false); The first page is hidden
  • Related