Help with Menu, JCreator Design
-
I created a Qt Gui Application, and added a few items into the default menubar. Issue is, how can I make it so when the item is clicked it triggers something else.
I tried right clicking on the items themselves, but nothing. I also tried clicking "Edit Signal/Slots", however I am unable to click on the items due to the fact you need to click on the menu for the items to appear.
Thanks
-
Hello.
Probably "this":http://qt-project.org/videos/watch/qt_essentials_widget_edition_application_creation_part_1_mainwindows will answer your question -
Also, if you want to edit signals/slots from Designer, you shoud:
Add new menu in menuBar.
Add new action in your menu
Switch to Signals/Slots mode
Lock at the bottom of the screen and and choose Signals/alots Editor (or something like this, I don't have English QtCreator) tab
Push green plus button to add signal-slot connection
Choose your menu's action as sender and whateveryouwant as reseiver.
???
Profit.