From e48751aecc0cd3750557273cc27117badfcee8c3 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 1 Oct 2009 10:17:50 +1000 Subject: Enhance layout example It's actually useful now. A lot slower too. --- examples/declarative/layouts/layouts.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/declarative/layouts/layouts.qml b/examples/declarative/layouts/layouts.qml index 6e22d8b..b54a7f3 100644 --- a/examples/declarative/layouts/layouts.qml +++ b/examples/declarative/layouts/layouts.qml @@ -5,7 +5,8 @@ Item { id: resizable GraphicsObjectContainer{ anchors.fill:parent QGraphicsWidget{ - geometry:{ "0,0," + parent.width.toString() + "x" + parent.height.toString(); } + size.width:parent.width + size.height:parent.height layout: QGraphicsLinearLayout{ LayoutItem{ minimumSize: "100x100" -- cgit v0.12