Skip to content

Commit

Permalink
Fix palette issue in qml_minimal example
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFordTytherington authored and ahayzen-kdab committed Jul 9, 2024
1 parent cbd69fd commit 816ba27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/qml_minimal/qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 816ba27

Please sign in to comment.