[Solved] Image in a tooltip
-
wrote on 11 Nov 2010, 17:25 last edited by
Is there a way to make a fancy "tooltip" with an image in it?
Thanks in advance. -
wrote on 11 Nov 2010, 17:29 last edited by
Well,
you can have a look to the source code of "QxtTooltip":http://doc.libqxt.org/0.6.0/qxttooltip.html, maybe it's not so hard to extract what you need.
Tony.
-
wrote on 11 Nov 2010, 17:33 last edited by
@QToolTip::showText( QPoint(20,20), "<img > Test" );@
It works -
wrote on 11 Nov 2010, 17:51 last edited by
You can use HTML in a tooltip text?
-
wrote on 11 Nov 2010, 17:54 last edited by
yes, you can use: img src = ":/test.png" where test.png it's file from .qrc.
-
wrote on 11 Nov 2010, 17:56 last edited by
Wow! Thanks!
1/6