From ffcdd1d6742986e46920919800a382ecf7b58011 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Sun, 28 Aug 2016 18:21:24 +0200 Subject: SplitView: clarify how item sizes should be set It's not exactly clear from the documentation. Change-Id: If173c63e080709c13b4a7b0bf18ef9b02eeec474 Reviewed-by: Richard Moe Gustavsen --- src/controls/SplitView.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.1