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. How to add QMenuBar to QWizardPage?
QtWS25 Last Chance

How to add QMenuBar to QWizardPage?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmenubarqwizardpage
4 Posts 2 Posters 635 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.
  • M Offline
    M Offline
    mahesh_j
    wrote on last edited by
    #1

    I am trying to add a QMenuBar to QWizardPage

        QMenuBar *menuBar = new QMenuBar;
        menuBar->setNativeMenuBar(false);
        QMenu *helpMenu = new QMenu;
        QAction *helpAction = new QAction;
    
        helpMenu->addAction(helpAction);
        menuBar->addMenu(helpMenu);
    
        layout->addWidget(menuBar);
        //Other widgets
        setLayout(layout);
    

    But I can't see the menu bar.

    Basically I want to add an "Help" menu with "About product" item to display the product version and licensing information that we generally see in many applications.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What OS are you on ?
      What version of Qt are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What OS are you on ?
        What version of Qt are you using ?

        M Offline
        M Offline
        mahesh_j
        wrote on last edited by
        #3

        @SGaist I am on Windows 10 using QT 5.13.2

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you provide a more complete code sample ?

          This would allow to work on the same base.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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