I know you can't add QWidget's to a QToolbar in the designer.
So I tried to copy-paste the UI code from the QWidget into the QToolbar's section.
I've found an old document about the .ui format and it says you can do this.
It does work, even though the widget is not shown in the designer.
The header file gets generated with the widget in the toolbar and it runs ok.
Only problem, the item order is not preserved. I want the widget to be placed on the right. But it always gets placed first, no matter where it's put in the UI xml...
Is there a way around this, or is this a bug/not-implemented-feature in the UI-compiler?
Has someone successfully done it, or should I just give up and write my toolbar's in code?
Bookmarks