Qt creator, insert custom menu at specified place into menu bar

Posted by user363778 on Stack Overflow See other posts from Stack Overflow or by user363778
Published on 2010-06-15T09:34:00Z Indexed on 2010/06/15 9:52 UTC
Read the original article Hit count: 400

Filed under:
|
|
|
|

Hi,

I have created a menu bar and some menus with Qt creator. One of the menus had to be coded to use QActionGroup features. Now it is easy to add my custom menu to the menu bar with:

printMenu = menuBar()->addMenu(tr("&Print"));

but my menu will be in the last position of the menu bar. How do I add my menu at a specified place? (e.g. the second place right after the File menu)

Greetings

© Stack Overflow or respective owner

Related posts about c++

Related posts about gui