What's the correct way of clearing a pixmap?
setPixmap( 1, 0 ) will sometimes leave three small dots on the baseline.
What's the correct way of clearing a pixmap?
setPixmap( 1, 0 ) will sometimes leave three small dots on the baseline.
I don't understand how do you clear a pixmap with setPixmap(1,0)?
QPixmap does not have a setPixmap() method, QLabel does...
Any way, I think that QPixmap::fill() is what you need.
Sorry .. I meant for QListViewItem's.
see http://doc.trolltech.com/3.3/qlistvi...html#setPixmap
First I've set with:
setPixmap( 1, pxQueued );
Then I want to clear the pixmap!
My answer stays the same:
QListViewItem:ixmap() return the pixmap on which you can call fill().
EDIT: by the way setPixmap(1,0) is not clearing the pixmap, but sets a null pixamp (i.e it sets no pixamp) in the QListViewItem.
Last edited by high_flyer; 18th January 2006 at 21:09.
Thanks!
Setting a transparent pixmap does the trick.
Bookmarks