[Qt-interest] Using Qt delegate to render list of icons with tooltips?

Thomi Richards thomir at gmail.com
Mon Oct 26 14:09:37 CET 2009


Hi,


I need to render a horizontal list of pixmaps in a QTableView. In
itself that looks relatively simple using a custom delegate. However,
I need each one of these pixmaps to have a different tooltop attached
to it, such that the tooltip appears when the mouse hovers over the
individual icon.

I can't see a way to do that with the Qt delegate system - I can draw
the pixmaps, but I can't see any way to associate the tooltip text
with the pixmap, or any way to get notification when the tooltip needs
to be drawn.

is there a way to do this? Is it possible with the default item
delegate, or should I be looking at something a bit more
sophisticated?


Cheers,



More information about the Qt-interest-old mailing list