PDA

View Full Version : Add a QMenu into toolbar in Designer



lalesculiviu
19th November 2009, 17:35
Hello!

I have a main form, with a menu. The menu items contains submenus and submenus contains actions. I want to add a toolbar, and the toolbar to contain submenus.

So, I want to add a QMenu inside the toolbar (to show more actions in a popup). How can I do that in Designer (I know in code it can be done, using QMenu::menuAction converting from QMenu to QAction).

Example: menu contains File, Edit, Help. File contains New, Import, Export, Exit. Import contains Text, CSV, Text2. I want to add submenu Import in the toolbar, in Qt Designer 4.