BrainB0ne
26th January 2006, 18:49
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:
tip(rect, QString("<img src=\"image.png\">");
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:
QPixmap::fromMimeSource("image.png")
My problem is... i don't have a storage path to that image to insert at the src="" field
Maybe anyone can help me.. :)
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:
tip(rect, QString("<img src=\"image.png\">");
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:
QPixmap::fromMimeSource("image.png")
My problem is... i don't have a storage path to that image to insert at the src="" field
Maybe anyone can help me.. :)