From 6865b0acf7fd03a9e44c62ad4fb4b1780f577152 Mon Sep 17 00:00:00 2001 From: "pls.153" Date: Mon, 27 Oct 2025 10:30:59 +0100 Subject: [PATCH] revision --- examples/debug-ui/qml/main.qml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/debug-ui/qml/main.qml b/examples/debug-ui/qml/main.qml index 8fa0ec6..36fc927 100644 --- a/examples/debug-ui/qml/main.qml +++ b/examples/debug-ui/qml/main.qml @@ -3,21 +3,19 @@ import QtQuick.Controls 2.15 import QtQuick.Window 2.15 import 'debug/' as Dbg -StackView { +StackView { // *** for debug-ui id: main - objectName: "main" width: 800 height: 600 - initialItem: mainRect - - // show/hide dialogs + objectName: "main" // important + initialItem: mainRect // important + // *** for debug-ui function pushDialog(name) { switch (name) { case "debug": main.push(dialogDebug); break } } - function popDialog() { main.pop() } // fonts (must stay here, before using them below) @@ -40,7 +38,6 @@ StackView { } } - // dialogs - + // *** for debug-ui Dbg.DebugDialog { id: dialogDebug } }