PDA

View Full Version : how to add QToolbar on a widget inherited from QWidget



xiongxiongchuan
8th June 2010, 18:18
i create a widget ,and i want to add toolbar on it ,how add it

amoswood
8th June 2010, 18:39
i create a widget ,and i want to add toolbar on it ,how add it

The QToolBar is just a widget. So, you can add a QToolBar to any widget just by calling addWidget from QLayout or by setting the QToolBar parent to your widget.:)

xiongxiongchuan
9th June 2010, 06:06
thank you!