How to add QMenuBar to QWizardPage?
Unsolved
General and Desktop
-
I am trying to add a
QMenuBar
toQWizardPage
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.
-
Hi,
What OS are you on ?
What version of Qt are you using ? -
Can you provide a more complete code sample ?
This would allow to work on the same base.