Results 1 to 6 of 6

Thread: system tray problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    2

    Default system tray problem

    hello, everyone!

    I designed a program, I use F12 to invoke its minimize to try action. And the user can restore the window with tray icon menu.

    I use a slot function as follows:

    Qt Code:
    1. void mainwindow:: minimizetotraySlot()
    2. {
    3. if (isHidden())
    4. {
    5. show();
    6. trayIcon->hide();
    7. }
    8. else
    9. {
    10. hide();
    11. trayIcon->show();
    12. }
    13. }
    To copy to clipboard, switch view to plain text mode 


    And I define a tray icon menu as

    restore, quit, about.

    however, when I select the about item in the tray icon menu, after the about dialog displayed, the application will quit. I don't know why? The about dialog is only a common MessageBox.
    Last edited by vvdounai; 14th November 2007 at 04:04.

Similar Threads

  1. Minimize to system tray
    By aLiNuSh in forum Newbie
    Replies: 17
    Last Post: 4th March 2010, 12:51
  2. Minimize to system tray
    By krivenok in forum Qt Programming
    Replies: 5
    Last Post: 13th January 2009, 04:34
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  4. Replies: 16
    Last Post: 7th March 2006, 15: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.