path: root/dist
diff options
authorThorbjørn Martsum <>2013-04-16 09:07:44 +0200
committerThe Qt Project <>2013-05-13 16:32:50 +0200
commitadaa50e37da1fddada874a289792a1bd95c5aebc (patch)
tree24b50587636ef9db139676b2579cca125f2e4be5 /dist
parent70410467f0f99ce6d16fe0ac2b2a93a0c053fa05 (diff)
QHeaderView - add parameter to control sizeHint precision
Currently Qt looks at 1000 rows when scaling a column. That can be slow in some situations and too inaccurate in others. With this patch we leave it up to the user to decide how precise e.g resizeToContents should be. Change-Id: I6ef60f9a3bb40fc331ce1a1544fdc77488d20ca3 Reviewed-by: Stephen Kelly <>
Diffstat (limited to 'dist')
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/changes-5.2.0 b/dist/changes-5.2.0
index 59ea4f9985..4e7a2f397c 100644
--- a/dist/changes-5.2.0
+++ b/dist/changes-5.2.0
@@ -25,3 +25,7 @@ QtWidgets
- QAbstractScrollArea now has a SizeAdjustPolicy. If it is set to AdjustToContents
it will make use of the new protected viewportSizeHint() (binary compatible since it
was reserved in Qt5). This function returns a suggested size based on contents.
+- [QTBUG-4206] QTableView resizeToContents will now adjust to actual contents
+ and not just visible area. QHeaderView::setAutoResizePrecision() has been
+ introduced to control how precise the autoResize should be.