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. Differences in QtQuick module versions
Forum Updated to NodeBB v4.3 + New Features

Differences in QtQuick module versions

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 631 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    supaiku_
    wrote on last edited by
    #1

    I'm just curious, but all of my 200 qml files have the following statement:
    import QtQuick 2.0
    But there are newer versions to import like
    import QtQuick 2.4
    Where can I see the actual changes in those versions?
    I assume they are all backwards compatible, but what I
    want to now is what they change or improve.

    Is there anything I can read up?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Qt documentation has "since" tags, so you can scan it for them. New versions of QML module imports add new features.

      However, you will benefit from all bug fixes to existing features rgardless of which import you use. So, if you are using this:

      import QtQuick 2.0
      
      Rectangle {}
      

      and you run this using Qt 5.4 (which allows you to import QtQuick 2.4), you are still running the newest code, and benefit from all the bug fixes to rectangle. It's just that you can't use features that were added after Qt 5.0 until you bump the import version number.

      (Z(:^

      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