Hi,
I would like an Action on a MainWindow menubar that is merely checkable but does not show a menu.
E.g when in the application example in mainwindow.cpp in createMenus() I add the following:
Qt Code:
zoomMenu = menuBar()->addAction(tr("&Zoom")); zoomMenu->setStatusTip(tr("Press then Left Click + rubberband + Richt Click")); // zoomMenu->setEnabled(FALSE); //works zoomMenu->setCheckable(TRUE); zoomMenu->setChecked(TRUE);To copy to clipboard, switch view to plain text mode
Then the 'Zoom' button shows up on the menubar but it is never checked.
Anybody knows why?
Bookmarks