[Qt-interest] Changing the size of the icon of a tree widget item

R. Reucher rene.reucher at batcom-it.net
Mon Mar 1 15:27:55 CET 2010


bar tomas wrote:
> Is it possible to change the size of the  icon of a tree widget item?
> I've tried to by setting the size of the icon's pixmap, but my
> settings are completely ignored.
> Maybe the size of an icon of a tree widget item is set by Qt to some
> fixed size that can't be changed?
You can set the icon size of a QTreeWidget using  
QAbstractItemView::setIconSize(const QSize &size). It seems not to be 
possible to set the icon size of QTreeWidgetItem's individually (someone 
correct me, if I'm wrong).

HTH, René
-- 
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/




More information about the Qt-interest-old mailing list