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. [Solved] How to add menu item and trigger action?
Forum Updated to NodeBB v4.3 + New Features

[Solved] How to add menu item and trigger action?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 10.7k Views 1 Watching
  • 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.
  • W Offline
    W Offline
    webphone
    wrote on last edited by
    #1

    I would like to build a menu bar for a GUI desktop application in QT.

    In the designer, how can I add menu bar and menu item and how to trigger the action of the menu item?

    Is there any walkthrough tutorial?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HuXiKa
      wrote on last edited by
      #2

      "Google.":http://lmgtfy.com/?q=qt+creating+main+window+menu
      "First hit.":http://doc.qt.nokia.com/4.7-snapshot/designer-creating-mainwindows.html

      If you can find faults of spelling in the text above, you can keep them.

      1 Reply Last reply
      0
      • EddyE Offline
        EddyE Offline
        Eddy
        wrote on last edited by
        #3

        to set up your environment using qt Creator just follow this wizard :
        QT Creator Manual > Creating a Qt C++ Application

        but choose for QMainWindow instead of QWidget

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply
        0
        • W Offline
          W Offline
          webphone
          wrote on last edited by
          #4

          Menu items have added, how can I trigger the code?

          1 Reply Last reply
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #5

            Right mouse button in action editor...
            then "go to slot"
            and choose the signal you want.

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply
            0

            • Login

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