Solved Question about versions of "import QtQuick 2.x" and Qt 5.9.x
-
Hi all,
maybe somebody can explain me what happends with diffrent import statements. I have a QML based application, using "windeployqt" for copying all neccessary Qt dlls for shipping out my application.
When I started to develop the app I used Qt 5.4.1, the .qml files contained "import QtQuick 2.4". But today I have updated to Qt 5.9.3, the docs says "import QtQuick 2.7" in your .qml file. The app is normally build, without any problems and I didn't update the import statement.
But what happens during use of "windeployqt"? Does it deploy the Quick/Qml dlls with 2.4 or 2.7 version? Or is there only one dll which covers all versions.
Both, 5.9.2 and 5.9.3, "import QtQuick 2.7" is available. But when I read the change logs I can find some fixes of Flickable, delegates e.g.
That's little confusing. Or means that with 5.9.3 the Quick/QML module is fixed, 2.7 is only the API of types, methods which are extended? And if I use further my 2.4 statement however it runs with the latest, fixed dlls?
Thx
-
@jackmack said in Question about versions of "import QtQuick 2.x" and Qt 5.9.x:
Or means that with 5.9.3 the Quick/QML module is fixed, 2.7 is only the API of types, methods which are extended? And if I use further my 2.4 statement however it runs with the latest, fixed dlls?
Yes, using a newer import version just change the available API. It's the same code behind.
You can continue using an older import if you don't need new features, you'll still benefit from the bugfixes and improvements.