Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Action Editor didn't display the desire line of actions. Menu Toolbar objects have no action and slot trigger.

Action Editor didn't display the desire line of actions. Menu Toolbar objects have no action and slot trigger.

Scheduled Pinned Locked Moved Solved General and Desktop
beginneraction editorqt6qtwidgetsqt application
5 Posts 2 Posters 705 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amitsgh
    wrote on 13 Aug 2023, 19:25 last edited by amitsgh
    #1

    12014cef-633f-4f8c-95c5-50cd5344668e-image.png

    b9316e54-8861-49d5-a680-7dabbccab115-image.png
    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??

    A 1 Reply Last reply 13 Aug 2023, 21:21
    0
    • A amitsgh
      13 Aug 2023, 19:25

      12014cef-633f-4f8c-95c5-50cd5344668e-image.png

      b9316e54-8861-49d5-a680-7dabbccab115-image.png
      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??

      A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 13 Aug 2023, 21:21 last edited by
      #2

      @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.

      Software Engineer
      The Qt Company, Oslo

      A 1 Reply Last reply 14 Aug 2023, 04:29
      0
      • A Axel Spoerl
        13 Aug 2023, 21:21

        @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.

        A Offline
        A Offline
        amitsgh
        wrote on 14 Aug 2023, 04:29 last edited by
        #3

        @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.

        A 1 Reply Last reply 14 Aug 2023, 05:30
        0
        • A amitsgh
          14 Aug 2023, 04:29

          @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.

          A Offline
          A Offline
          Axel Spoerl
          Moderators
          wrote on 14 Aug 2023, 05:30 last edited by
          #4

          @amitsgh
          Have you read the documentation at all?

          Software Engineer
          The Qt Company, Oslo

          A 1 Reply Last reply 14 Aug 2023, 08:10
          0
          • A Axel Spoerl
            14 Aug 2023, 05:30

            @amitsgh
            Have you read the documentation at all?

            A Offline
            A Offline
            amitsgh
            wrote on 14 Aug 2023, 08:10 last edited by
            #5

            @Axel-Spoerl Yes, I have but not this one. Thank you for the link!!

            1 Reply Last reply
            0
            • A amitsgh has marked this topic as solved on 21 Aug 2023, 15:47

            2/5

            13 Aug 2023, 21:21

            • Login

            • Login or register to search.
            2 out of 5
            • First post
              2/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved