Results 1 to 2 of 2

Thread: Problem with setting a trayicon Tooltip...

  1. #1
    Join Date
    Aug 2010
    Posts
    107
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Problem with setting a trayicon Tooltip...

    My problem is.. How to set an icon for the tooltip...
    And also how to have the first line in basic... Exactly like the screenshot i have attached... It has an icon and the first line is basic...

    See what i have done..

    Qt Code:
    1. trayIcon->setToolTip("<b>My Program :D</b>\nDouble click to show the window.\nMiddle click to exit the application.\nRight click for some options.");
    To copy to clipboard, switch view to plain text mode 

    But the \n doesn't work because i had added <b></b>
    Any ideas?
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Problem with setting a trayicon Tooltip...

    For a newline you need to use the html tag for inserting newlines, for the image you need to use the html tag for inserting images.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. TrayIcon problem?
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 5th December 2008, 08:32
  2. Replies: 1
    Last Post: 4th July 2007, 16:26
  3. Qt 4.1.3 - XP - TrayIcon
    By incapacitant in forum Newbie
    Replies: 4
    Last Post: 13th June 2006, 16:54
  4. trayicon port to QT4
    By ykohn in forum Qt Programming
    Replies: 10
    Last Post: 21st April 2006, 15:11
  5. TrayIcon with Qt4
    By naresh in forum Qt Programming
    Replies: 7
    Last Post: 15th February 2006, 18:54

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.