5

Is it possible to add a tool bar inside QWidget that is placed inside a tab (in QTabWidget) ? The idea is to put a separate tool bar for each tab.

It seems that tool bars can only be placed inside QMainWindow.

BartoszKP
  • 34,786
  • 15
  • 102
  • 130
Sebastian Dusza
  • 2,470
  • 2
  • 30
  • 54

1 Answers1

8

QToolBar is an ordinary QWidget, you can add it to a layout.

BartoszKP
  • 34,786
  • 15
  • 102
  • 130
Kamil Klimek
  • 12,884
  • 2
  • 43
  • 58
  • 4
    Thanks, i didn't know that. Its a shame that QtCreator doesn't allow to add toolbars as widgets. At least not directly. I think I solved my problem by using QMainWindow widgets inside QTabWidget. – Sebastian Dusza Mar 11 '11 at 17:45