Quote Originally Posted by wysota
Yes, they are meant only for QMainWindows.
No !
any Widget or Dialog. We can add Toolbar:

- define 1 tool bar"this" is widget(Dialog) want add toolbar)
QToolBar * m_pobTB;


m_pobTB=new QToolBar(this);

and on Toolbar add Action need

- set position of Toolbar
m_pobTB->setGeometry(0,0,width(),30); // example