View Single Post
Posts: 180 | Thanked: 76 times | Joined on May 2010
#5
Originally Posted by rooster13 View Post
Hope it helps, and if you ever find out how to resize the icon on the DecorationRole, I would really appreciate if you tell me how you did it, cause I am currently having problems with scalable icons on the QListWidget...
You draw the icon with QIcon:: paint method. Maybe you should use QPainter::drawPixmap instead.

The pixmap is scaled to fit the rectangle, if both the pixmap and rectangle size disagree.
 

The Following User Says Thank You to Diph For This Useful Post: