C
Qt Quick Ultralite loader Example
// Copyright (C) 2024 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial import QtQuick 2.15 import SettingsData import GameState Item { id: root Column { anchors.centerIn: parent Text { anchors.horizontalCenter: parent.horizontalCenter text: "Wrong!" font: SettingsData.bigFont } Text { anchors.horizontalCenter: parent.horizontalCenter text: "Your score: " + GameState.score font: SettingsData.smallFont } } MouseArea { anchors.fill: parent onClicked: { GameState.resetStreak() GameState.prepareRound() GameState.roundStarted() } } }