Qt Menus
Hi, I have a couple of questions about the menus in Qt
Everytime I try to make a new Options menu the action “Show open apps.” is include by default. Is there any way to remove it?
The code is this
- QmlApplicationViewer viewer;
- m_menu->addAction("Exit", &app, SLOT(quit()));
- optionsAction->setMenu(m_menu);
- viewer.addAction(optionsAction);
The second question is about the action “exit”. Is there any way to hide instead of exit? I saw some applications (like ovi contacts) do it to keep running the application in background. I tried with viewer.hide and viewer.showMinimized but it doesn’t work.
Thanks in advance!
0 replies
You must log in to post a reply. Not a member yet? Register here!
