[Qt-interest] How to install a custom layout in a QToolBar?
Marcelo Magno T. Sales
mmtsales at gmail.com
Wed Jan 21 20:52:47 CET 2009
Hi,
I'd like to install a QBoxLayout in a QToolBar. To use setLayout(), one
must first delete the current widget's layout, but if I do that with a
QToolBar the program aborts when the tool bar is shown (segmentation
fault).
I might use the QToolBar default layout instead of deleting it and
creating another, but using layout()->metaObject()->className() I see
that QToolBar's default layout is a QToolBarLayout object, and this is
not documented (at least, I didn't find this class in QT Assistant).
Thanks,
Marcelo
More information about the Qt-interest-old
mailing list