From 495c91ce33b1b66d37d2ecfc86fd26b91697ea71 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 10 May 2020 11:22:52 +0200 Subject: [PATCH] using sizeConstraint --- examples/colorswitch/colorswitch.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/colorswitch/colorswitch.qml b/examples/colorswitch/colorswitch.qml index 401b37b6..39453eaf 100644 --- a/examples/colorswitch/colorswitch.qml +++ b/examples/colorswitch/colorswitch.qml @@ -28,7 +28,7 @@ Main { // very much standard: we should find a better way - var hint = effectivePreferredSize(); + var hint = sizeConstraint(); setMinimumWidth( hint.width ) setMinimumHeight( hint.height ) }