Why are changes to the QML code sometimes not reflected when hitting 'Run' and how to solve it?

后端 未结 1 1469
眼角桃花
眼角桃花 2021-01-24 06:52

In this Qt Quick simple example, I want that when I move a Racked upwards, we have a message on console.log showing that movement and another message when the Racket is

相关标签:
1条回答
  • 2021-01-24 07:17

    This is indeed a bug in QMake. As @Mitch posted in his comment, a bug report was already filed: bugreports.qt.io/browse/QTBUG-13334

    If you read through the comments in that bug report, a workaround for the problem was posted. Have been using it for a couple of months now and it seems to fix the issue. All you have to do is paste this at the end of your pro file.

    #update qml
    qml_scenes.depends = $$PWD/resources/scene1.qml $$PWD/resources/scene2.qml ...
    qml_scenes.commands =
    QMAKE_EXTRA_TARGETS += qml_scenes
    
    0 讨论(0)
提交回复
热议问题