Results 1 to 6 of 6

Thread: system tray problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Location
    Szczecin, Poland
    Posts
    153
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    7
    Thanked 11 Times in 8 Posts

    Default Re: system tray problem

    hi again,
    If you turned off automatic application termination feature of qt, you shall terminate it on your own.
    Qt Code:
    1. connect(qApp,
    2. SIGNAL(lastWindowClosed(void)),
    3. this,
    4. SLOT(closeIfNoTryIcon(void)));
    5.  
    6. *::closeIfNoTryIcon(void)
    7. {
    8. if(/*there's no try icon shown*/)
    9. qApp->quit()
    10. }
    To copy to clipboard, switch view to plain text mode 
    If you turned off automatic application termination feature of qt, you shall terminate it on your own.

  2. The following user says thank you to mchara for this useful post:

    vvdounai (14th November 2007)

  3. #2
    Join Date
    Nov 2007
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default Re: system tray problem

    Ok, I got it. As mchara said, I choose to add qApp->quit(); as the last line of colseEvent() to close the application.

    thanks

Similar Threads

  1. Minimize to system tray
    By aLiNuSh in forum Newbie
    Replies: 17
    Last Post: 4th March 2010, 13:51
  2. Minimize to system tray
    By krivenok in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2009, 05:34
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  4. Replies: 16
    Last Post: 7th March 2006, 16:57

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.