path: root/examples/widgets/itemviews/
diff options
authorDavid Faure <>2017-12-18 10:19:51 +0100
committerDavid Faure <>2018-01-02 09:31:11 +0000
commit739611221c8346eb3800753f0acf354c42bf20a5 (patch)
tree115d59edd20532a050660a3a9677d985f0e04d6b /examples/widgets/itemviews/
parenta899e454950e346709d233c7180ba4ce5aed34ec (diff)
Add QHeaderView::setFirstSectionMovable(), useful for flat treeviews
QTreeView makes columns movable except for the first one (since Qt 5.0, see commit e0fc088c0c). This is indeed best for actual trees, but not when using QTreeView as a flat multi-column list (with no "root decoration"). Then it should be possible to move the first column. [ChangeLog][QtWidgets][QHeaderView] Flat treeviews can now allow the user to move the first column (like in Qt 4.x) using the new method QHeaderView::setFirstSectionMovable(). Change-Id: I6b5025e40850bf5c4c373124ee81f657f3f09d29 Reviewed-by: Thorbjørn Lund Martsum <>
Diffstat (limited to 'examples/widgets/itemviews/')
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/widgets/itemviews/ b/examples/widgets/itemviews/
index 787217a8e8..75307bd74e 100644
--- a/examples/widgets/itemviews/
+++ b/examples/widgets/itemviews/
@@ -8,6 +8,7 @@ SUBDIRS = addressbook \
dirview \
editabletreemodel \
fetchmore \
+ flattreeview \
frozencolumn \
interview \
pixelator \