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

Thomi Richards thomir at gmail.com
Mon Oct 26 15:49:30 CET 2009


Hi,


Sorry I should have been more explicit.


2009/10/26 Sean Harmer <sean.harmer at maps-technology.com>:
>
> Is each icon in it's own cell? ie Is there a one to one mapping between icons
> and QModelIndex's?

Nope - I have one cell, and in that cell I want a horizontal list of icons.

>
> If you have several icons and tool tips for any particular QModelIndex then
> you will need to provide a custom delegate.
>

Right - but I can't see how the tooltips will work - I can use a
custom delegate to render the pixmaps just fine, but i can't see how
to get a different tooltip for each icon.


Cheers,



More information about the Qt-interest-old mailing list