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

bar tomas bartomas at gmail.com
Tue Mar 2 16:29:56 CET 2010


Many thanks!
You suggestion of using QAbstractItemView::setIconSize(const QSize
&size) works fine.

On Mon, Mar 1, 2010 at 2:27 PM, R. Reucher <rene.reucher at batcom-it.net> wrote:
> 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/
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list