Results 1 to 5 of 5

Thread: Preoblem with setQuitOnLastWindowClosed (false); and QMainWindow

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    16
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Preoblem with setQuitOnLastWindowClosed (false); and QMainWindow

    Hi for all.
    Now I develop sytem "Task Manager system " based on website + xmlrpc + windows software.

    ------------------------------------
    Some months ago I develop simple software:
    Qt Code:
    1. QApplication a(argc, argv);
    2. a.setQuitOnLastWindowClosed ( false);
    To copy to clipboard, switch view to plain text mode 

    Main window based on QWidget

    But now I use QMainWindow.

    Qt Code:
    1. QApplication a(argc, argv);
    2. a.setQuitOnLastWindowClosed (false);
    3. mainWindow = new Gefest(config);
    4. mainWindow->show();
    To copy to clipboard, switch view to plain text mode 

    When I click close on MainWindow window not closed but hide to systemtray.
    When I close subwindow software closed.
    Please help.
    setQuitOnLastWindowClosed not work with QMainWindow?
    Last edited by jpn; 11th May 2008 at 20:40. Reason: missing [code] tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.