[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Multitple icons/pixmap in same cell
From:       donoban <donoban () riseup ! net>
Date:       2019-09-07 15:04:44
Message-ID: 13884bec-7882-46dd-f542-9f0b8bb77552 () riseup ! net
[Download RAW message or body]

On 9/7/19 2:55 AM, Maurizio Berti wrote:
> Using multiple columns with a "shared" header cell is possible, but not
> easy.
> ...
> I've decided for a more "standard" approach which simply puts all icons
> left aligned, but since you've cited tooltips I also added support for
> those.
> The idea is that you use a role for each icon you want to show, given
> that a "status" icon is always visible, and any other icon is shown
> whenever exists and its role is set to True.
> I use QStyle and QStyleItemView to draw the base item rectangle, then
> find the rectangle where an icon would be shown and use that data to
> paint all icons.
> 

Thanks. I will try to implement this way, the left alignment should be fine.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic