[Qt-interest] using QHeaderView outside a QTreeView
Rajeev J Sebastian
rajeev.sebastian at gmail.com
Sun Feb 1 11:50:49 CET 2009
Hi,
Due to some requirements in our mockup UI design, I need to use a
QHeaderView external to a QTreeView, i.e., i want to create and place
a header view without calling .setHeader() on the tree view. At the
same time, I need the section resizing to be performed by the tree
view as well.
For this, I implemented a custom QTreeView subclass with a
setExternalHeader() method. In this method, i connect the header's
sectionResized to the protected columnResized(int, int, int) slot of
the tree view. However, resizing the header section does not propagate
the change to the tree view.
How can I achieve this ?
Regards
Rajeev J Sebastian
More information about the Qt-interest-old
mailing list