Action Editor didn't display the desire line of actions. Menu Toolbar objects have no action and slot trigger.
-
wrote on 13 Aug 2023, 19:25 last edited by amitsgh
I'm following the notepad tutorial of qt6.5 of making notepad and here it says -Click on "Type Here", and add the options New, Open, Save, Save as, Print and Exit. This creates 5 lines in the Action Editor below. To connect the actions to slots, right-click an action and select Go to slot > triggered(), and complete the code for that given slot.
but as in the above pic there the action editor is empty, there are no 5 lines created and right-click New objects shows not action option.
What should I do??
-
I'm following the notepad tutorial of qt6.5 of making notepad and here it says -Click on "Type Here", and add the options New, Open, Save, Save as, Print and Exit. This creates 5 lines in the Action Editor below. To connect the actions to slots, right-click an action and select Go to slot > triggered(), and complete the code for that given slot.
but as in the above pic there the action editor is empty, there are no 5 lines created and right-click New objects shows not action option.
What should I do??
@amitsgh
Save, open, save as and new are menus, not actions. If they should be actions, remove them and add them as actions to the file menu. -
@amitsgh
Save, open, save as and new are menus, not actions. If they should be actions, remove them and add them as actions to the file menu.wrote on 14 Aug 2023, 04:29 last edited by@Axel-Spoerl Can you suggest me on, how to add them as action to the file menu because I see no widget related to QAction in sidebar and the .ui file is read only.
-
@Axel-Spoerl Can you suggest me on, how to add them as action to the file menu because I see no widget related to QAction in sidebar and the .ui file is read only.
@amitsgh
Have you read the documentation at all? -
@amitsgh
Have you read the documentation at all?wrote on 14 Aug 2023, 08:10 last edited by@Axel-Spoerl Yes, I have but not this one. Thank you for the link!!
-
5/5