January 3, 2012

kalster kalster
Lab Rat
315 posts

[SOLVED] how to setup tabs inside the dockwidget

 

i seem to have forgotten how to create tabs in the dockwidget. can someone please explain how to setup tabs to be displayed inside of the dockwidget. thank you

3 replies

January 3, 2012

Forgive Forgive
Lab Rat
40 posts

You can’t. But you could set it’s widget to a QTabWidget. (Correct me if i’m wrong).

January 3, 2012

broadpeak broadpeak
Lab Rat
361 posts

QTabBar will be your friend.
Usage is the same as in another widget.

January 5, 2012

kalster kalster
Lab Rat
315 posts

i found what i was looking for. the following code is needed to display the tab inside of the dockwidget.

  1. ui->dockWidget->setWidget(tab);

 
  ‹‹ In case of drawcontrol function of QStyle class how can we draw control with pixmap?      how to get both index and selected item at asame time in qtreewidget? ››

You must log in to post a reply. Not a member yet? Register here!