[Qt-interest] TreeView height of rows adjustment?

Malyushytsky, Alex alex at wai.com
Mon Oct 25 23:19:36 CEST 2010


AFAIK to control the height of a row, you must re-implement the QAbstractItemDelegate::sizeHint() function.

Regards,
   Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Eckhard Jokisch
Sent: Monday, October 25, 2010 1:12 AM
To: Qt-interest at trolltech.com
Subject: [Qt-interest] TreeView height of rows adjustment?

Hi,
The easy part: I have a TreeView that mainly shows text items.

The difficult part:
The ItemDElegate must be a widgt that is much higher than the text is in non-
editing mode.
Some Items represent complex bitmaps that also do not fit into the given height
of the TreeView rows.

Is there any way to adjust the height of some rows in TreeView?

Cheers

Eckhard
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list