[Qt-interest] QTreeWidget locking row
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Tue Jul 6 02:58:09 CEST 2010
Hi Vince,
I've done something similar using two readonly QTableWidgets to show a
locked summary line at the bottom of a report using a vertical layout. The
main trick is to keep the column widths in sync using the horizontalHeader()
sectionResized slot of the main report widget. Not sure whether QTreeWidget
has something similar - if not, try using a QTreeView linked to the internal
model of the QTreeWidget.
Hope that helps,
Tony.
-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Vincent LEFORT
Sent: Monday, 5 July 2010 18:28
To: qt-interest
Subject: [Qt-interest] QTreeWidget locking row
Hello, i would like to test a thing : Lock a row in a QTreeWidget
I want to always see the first row of my QTreeWidget even if i scroll the
tree.
Anyone have an idea ?
Thanks a lot.
V.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100706/90c57b18/attachment.html
More information about the Qt-interest-old
mailing list