[Qt-interest] Setting customized row heights for QTreeWidget
Santhosh Y
santhosh at softjin.com
Tue Jun 2 16:20:52 CEST 2009
Hi,
How do I control the row heights in a QTreeview structure.
Please find the attached file.
I tried to set different heights for different rows in my QTreeview
frame work.
When will the function QTreeView::indexRowSizeHint(const
QModelIndex&) const will be
triggered to read my customized row heights. Am I over-writing the
correct API to tweak the row heights?
Is this correct?
Since the above function is not a virtual function (it is a protected
function) over base class ,
my overriding definition will never be called.
I afraid that overriding mechanism will fail in this case!
Any help is appreciated.
Regards,
Santhosh
The message is ready to be sent with the following file or link
attachments:
tree-widget
Note: To protect against computer viruses, e-mail programs may prevent
sending or receiving certain types of file attachments. Check your
e-mail security settings to determine how attachments are handled.
--
----------------------------------------------------
Y Santhosh Kumar
Senior Software Engineer
SoftJin Technologies Private Limited
Unit No. 102, Mobius Tower,
I Floor, SJR I - Park,
EPIP, White Field,
Bangalore - 560066, India
U : www.softjin.com
E : santhosh at softjin.com
T : +91-80-41779999
M : +91-9740535265
----------------------------------------------------
Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for the use of the individual or entity to which they are addressed. It
may contain confidential, proprietary or legally privileged information.
If you are not the intended recipient please be advised that you have
received this message in error and any use is strictly prohibited. Please
immediately delete it and all copies of it from your system, destroy any
hard copies of it and notify the sender by return mail. You must not,
directly or indirectly, use, disclose, distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tree-widget.h
Url: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090602/2f9a99ef/attachment.h
More information about the Qt-interest-old
mailing list