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;

    QMenu* m_menu;
    m_menu = new QMenu();
    m_menu->addAction("Exit", &app, SLOT(quit()));

    QAction *optionsAction = new QAction("Options", &viewer);

    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!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.