View Single Post
Posts: 118 | Thanked: 45 times | Joined on Dec 2009 @ Germany
#28
Originally Posted by Venemo View Post
Thanks!
IT WORKS!

Now it is nice that this works from code, but is there any way in the UI designer to do this?
(I mean the UI designer of Qt Creator for Windows. I use MADDE.)
Bringing up an old one.

I also use MADDE. In the Qt Designer you can add a menu bar to your main window by right clicking on it (in the "object/class window") and selecting menu bar. Then it will show up in the wysiwyg window. There you can change the "type here" to something valid and get your menu. In that "drop down" menu you, you have to fill in some names. If I take the examples above it would be "Action1" and "Action2".

The resulting action will be called like actionAction1 actionAction2, or so, which you than can use.

I hope this can be somehow understood (without graphics ^^).
 

The Following User Says Thank You to emesem For This Useful Post: