Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Question about versions of "import QtQuick 2.x" and Qt 5.9.x

Question about versions of "import QtQuick 2.x" and Qt 5.9.x

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 783 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jackmack
    wrote on last edited by A Former User
    #1

    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

    1 Reply Last reply
    1
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      @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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved