Results 1 to 3 of 3

Thread: QSystemTray stays longer than it should !

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    185
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QSystemTray stays longer than it should !

    I just created a QSystemTray.

    Qt Code:
    1. trayIcon->showMessage("Beta 0.9", "You are logged in", trayIcon->Information, 1);
    To copy to clipboard, switch view to plain text mode 

    The idea is that the message displayed in the tray should stay for a very short period of time, but it stays there for about 10 seconds.

    1. How can I make sure that the message disappears after 2 seconds ?

    2. The system tray icon is a child of my QMainWindow, but when I close the window, the icon stays in the system tray. Why ? How can I destroy it together with the window ?
    Last edited by probine; 21st December 2006 at 11:17.

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.