Results 1 to 5 of 5

Thread: [QT3] QToolTip with Images (QPixMap) ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default [QT3] QToolTip with Images (QPixMap) ?

    Hello,

    I would like to know if it is possible to insert an image from the image collection in a QToolTip.

    I know that it's possible to display an image in a tooltip by using HTML code in a QString like:

    Qt Code:
    1. tip(rect, QString("<img src=\"image.png\">");
    To copy to clipboard, switch view to plain text mode 

    but i need to insert a .png from the image collection i created with QT designer.
    Normally i use the following function to get an image from the image collection:

    Qt Code:
    1. QPixmap::fromMimeSource("image.png")
    To copy to clipboard, switch view to plain text mode 

    My problem is... i don't have a storage path to that image to insert at the src="" field

    Maybe anyone can help me..
    Last edited by BrainB0ne; 27th January 2006 at 15:16.
    ..:: Still Standing Strong ::..

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.