Zhao Yuhang
2025-02-09 f1d4f07dcb8bd93578abb2fc1e289050d7e1c3ee
fix the QML demo
1个文件已修改
10 ■■■■■ 已修改文件
examples/qml/main.qml 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
examples/qml/main.qml
@@ -12,8 +12,8 @@
    title: qsTr("Hello, world!")
    Component.onCompleted: {
        windowAgent.setup(window)
        windowAgent.setWindowAttribute("dark-mode", true)
        window.visible = true
        delayInitTimer.start()
    }
    QtObject {
@@ -32,6 +32,14 @@
        onTriggered: timeLabel.text = Qt.formatTime(new Date(), "hh:mm:ss")
    }
    Timer {
        id: delayInitTimer
        interval: 100
        running: false
        repeat: false
        onTriggered: windowAgent.setWindowAttribute("dark-mode", true)
    }
    WindowAgent {
        id: windowAgent
    }