0

I with to use the tabs of QTabWidget but I don't need the pages as containers. I need only the tabs.

Is there a way I can hide or disable the page containers and display only the tabs?

Daniel Hedberg
  • 5,677
  • 4
  • 36
  • 61
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106

1 Answers1

2

Use QTabBar which includes only tabs.

erelender
  • 6,175
  • 32
  • 49
  • Here is how I did it according to your suggestion QTabBar *bar = new QTabBar(); bar->addTab("Deck 1"); bar->addTab("Deck 2"); ui->verticalLayout->addWidget(bar); – Gad D Lord Aug 19 '10 at 20:15