Results 1 to 3 of 3

Thread: QSystemTrayIcon closed " unexpectedly"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Location
    Kędzierzyn-Koźle
    Posts
    16
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default QSystemTrayIcon closed " unexpectedly"

    Hello
    I have encounter following issue.
    I have an instance of DaemonTray that is subclass of QSystemTrayIcon
    executing following code close whole program ... (Task bar icon disappears)

    Qt Code:
    1. DaemonTray::config()
    2. {
    3. ConfigDialog dialog;
    4. dialog.exec()
    5. }
    To copy to clipboard, switch view to plain text mode 

    When I close the dialog with close() or reject() or clicking on X button on the dialog .. the whole application is closed.
    I find out that reason is in QApplication::quitOnLastWindowClosed() which is default set to true. But the above behaviour occurs only on windows on linux with the same tools gcc 3.4.5 and Qt 4.2.2 application does not close ... can anybody explain to me what makes that difference ???
    Last edited by wysota; 9th December 2006 at 23:38.

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.