From a7fa7e376993cb9de45a046f723e8789c6275dbc Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 1 Jul 2019 14:44:54 +0200 Subject: [PATCH] using stretch factors --- examples/layouts/GridLayoutPage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/layouts/GridLayoutPage.cpp b/examples/layouts/GridLayoutPage.cpp index 235f612d..61518554 100644 --- a/examples/layouts/GridLayoutPage.cpp +++ b/examples/layouts/GridLayoutPage.cpp @@ -25,7 +25,11 @@ namespace addItem( new TestRectangle( "PaleVioletRed" ), 0, 0, 1, 2 ); addItem( new TestRectangle( "DarkSeaGreen" ), 1, 0, 2, 1 ); addItem( new TestRectangle( "SkyBlue" ), 2, 1, 1, 1 ); - addItem( new TestRectangle( "NavajoWhite" ), 0, 2, 4, 1 ); + addItem( new TestRectangle( "NavajoWhite" ), 0, 2, -1, 1 ); + + setRowStretchFactor( 0, 1 ); + setRowStretchFactor( 1, 2 ); + setRowStretchFactor( 2, 1 ); } void mirror()