Skip to content

Fix palette issue in qml_minimal example #990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading