How to find the latest versions of all QML modules

前端 未结 1 1686
梦毁少年i
梦毁少年i 2021-02-18 19:40

Usually my QML files start with import QtQuick 2.4 and other imports. How can I know which is the latest version of the imported modules without having to guess by

1条回答
  •  礼貌的吻别
    2021-02-18 20:11

    You basically don't have to know. By importing a particular version, you merely declare that you don't need the additional functionality of any potentially newer version. That doesn't mean that you won't use a newer version if one is available - it simply means that your code will refuse to run if only an older version than the one you need is present.

    So, you should only change the imported module version if you happen to use the functionality (members, classes, etc.) from a newer version. That's all. And you will know exactly what version you need, since you're using the functionality you read about in the documentation. The documentation will state what module version it applies to.

    The documentation for a given Qt Quick module from the Qt that you're using will state this - no need for release notes.

    0 讨论(0)
提交回复
热议问题