From 816ba27fa8f3d0f0afbc42cccff9d8467c7e02e7 Mon Sep 17 00:00:00 2001 From: Ben Ford Date: Tue, 9 Jul 2024 11:01:52 +0100 Subject: [PATCH] Fix palette issue in qml_minimal example --- examples/qml_minimal/qml/main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/qml_minimal/qml/main.qml b/examples/qml_minimal/qml/main.qml index 8c693b692..0b32505e4 100644 --- a/examples/qml_minimal/qml/main.qml +++ b/examples/qml_minimal/qml/main.qml @@ -15,11 +15,12 @@ import QtQuick.Window 2.12 import com.kdab.cxx_qt.demo 1.0 // ANCHOR_END: book_qml_import -Window { +ApplicationWindow { height: 480 title: qsTr("Hello World") visible: true width: 640 + color: palette.window MyObject { id: myObject @@ -34,10 +35,12 @@ Window { Label { text: qsTr("Number: %1").arg(myObject.number) + color: palette.text } Label { text: qsTr("String: %1").arg(myObject.string) + color: palette.text } Button {