[Qt-interest] paint emtpy selected cell from QItemDelegate with a custom editor
wim.delvaux at adaptiveplanet.com
wim.delvaux at adaptiveplanet.com
Mon Nov 30 17:23:57 CET 2009
Hi,
I have this item delegate that returns a custom widget as editor for a certain
cell.
However that widget has a transparent background. and paints itself on top of
the 'static' content of the cell (i.e. the value that is in the cell without
editor).
I want to paint the widget on an 'empty' background. That background is
generally 'selected'.
I have set setBackgroundRole on the widget while setting setAutoFillBackground
to TRUE but to avail. previous content is not erase.
How can I do this ?
Thx
More information about the Qt-interest-old
mailing list