How to access QTabWidget tab editor in Qt Designer - when I double click object name dialog pops up

Tomáš Zato - Reinstate Monica picture Tomáš Zato - Reinstate Monica · Apr 4, 2016 · Viewed 7.5k times · Source

I have a QTabWidget and I want to add/remove/rename individual tabs. Some sources claim that you can double click it to get a tab editor. When I double click it, I get the "Object name" popup:

image description

I need a similar editor like the one used for comboboxes:

image description

I also tried to edit tab properties by right-clicking it in object tree. The menu is pretty stripped of any useful options:

image description

How to manage tabs? Is it possible without XML editor? If yes how do I

  • ... delete tabs?
  • ... add tabs?
  • ... rename tabs?
  • ... change tab layout?

Answer

Just to make it more clear...

Add tab to QTabWidget:

From QTabWidget context menu → InsertPage:

Add tab to QTabWidget screenshot

Rename tab in QTabWidget

Select the tab to rename by clicking on it. Then edit QTabWidget property currentTabText in the property editor:

Rename tab in QTabWidget screenshot

Delete tab in QTabWidget

Select the tab you want to delete. From QTabWidget context menu → Page X of Y → delete:

Delete tab in QTabWidget screenshot