[Qt-interest] Dynamic Morph
admin at mbnoimi.net
admin at mbnoimi.net
Sat May 14 12:34:27 CEST 2011
On 14/05/2011 01:00 م, Ross Bencina wrote:
>> I've complicated menu in my UI and I don't
>> want to recreate them manually so I just want
>> to morph (convert) created QMenuBar to QToolBar at runtime.
>
> Each QMenu has an associated QActions. This is traversable via
> QMenu::actions()
>
> You could write a loop that traverses all menus and adds each of their
> actions to a toolbar using QToolBar::addAction()
That's it... thanks
More information about the Qt-interest-old
mailing list