summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-08-28 18:21:24 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-09-05 12:21:06 +0000
commitffcdd1d6742986e46920919800a382ecf7b58011 (patch)
treecc2fe08f215eee9caf7e150ff56758c4d1734ae2
parentdeb7bcec278dea1d5903c6d83de234a960051873 (diff)
downloadqtquickcontrols-ffcdd1d6742986e46920919800a382ecf7b58011.tar.gz
SplitView: clarify how item sizes should be set
It's not exactly clear from the documentation. Change-Id: If173c63e080709c13b4a7b0bf18ef9b02eeec474 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
-rw-r--r--src/controls/SplitView.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/controls/SplitView.qml b/src/controls/SplitView.qml
index 868108aa..02b788bc 100644
--- a/src/controls/SplitView.qml
+++ b/src/controls/SplitView.qml
@@ -58,9 +58,13 @@ import QtQuick.Window 2.1
item will get all leftover space when other items have been laid out.
By default, the last visible child of the SplitView will have this set, but
it can be changed by explicitly setting fillWidth to \c true on another item.
+
As the fillWidth item will automatically be resized to fit the extra space, explicit assignments
- to width and height will be ignored (but \l{Layout::minimumWidth}{Layout.minimumWidth} and
+ to its width and height properties will be ignored (but \l{Layout::minimumWidth}{Layout.minimumWidth} and
\l{Layout::maximumWidth}{Layout.maximumWidth} will still be respected).
+ The initial sizes of other items should be set via their width and height properties.
+ Any binding assignment to an item's width or height will be broken as soon as the user
+ drags that item's splitter handle.
A handle can belong to the item either on the left or top side, or on the right or bottom side:
\list