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. [Solved] When to use QtQuick 1.1 or 2.0 or 2.2
Forum Updated to NodeBB v4.3 + New Features

[Solved] When to use QtQuick 1.1 or 2.0 or 2.2

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 3 Posters 6.1k 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.
  • D Offline
    D Offline
    DBoosalis
    wrote on last edited by
    #1

    I have a small app that I started with Qt 5.2 and was using QtQuick 1.1 I since download Qt 5.3 Beta, now when I changed the import from "QtQuick 1.1" to "QtQuick 2.2" it no longer runs on the Android device. The erros says something about QtQuick 2 not found, yet it compiled just find, so is there a bug with the package and installer ?

    Opinion:
    All these version of QtQuick 1.0, 1.1, 2.0, 2.2, coupled with names like QML, QDeclarative, Quick, QuickControls, Quicklayouts, then add to that the different versions of Qt 4.x, Qt5.2, and now Qt5.3 - its all getting kind of confusing for me, and I have been around Qt for a while. So how about the person just starting out. Hope for everyone's sake all of this gets simplified

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      Hi,

      Generally, it is best to use the highest version number -- The latest version will have more features and more bug fixes than the older versions. (This is true for many software products, not just Qt)

      @DBoosalis said:

      I have a small app that I started with Qt 5.2 and was using QtQuick 1.1 I since download Qt 5.3 Beta, now when I changed the import from "QtQuick 1.1" to "QtQuick 2.2" it no longer runs on the Android device. The erros says something about QtQuick 2 not found, yet it compiled just find, so is there a bug with the package and installer ?

      You probably have old Qt Quick 1 stuff left in your project that is interfering with deployment. (You cannot mix Qt Quick 1 and Qt Quick 2). Start a new project and select Qt Quick 2 only -- the problem should go away.

      Qt Quick 1 is the 1st version of the Qt Quick technology. Its performance is not very good, and it is now deprecated. It is provided in Qt 5 for backwards compatibility only; all new projects should use Qt Quick 2.

      All these version of QtQuick 1.0, 1.1, 2.0, 2.2, coupled with names like QML, QDeclarative, Quick, QuickControls, Quicklayouts, then add to that the different versions of Qt 4.x, Qt5.2, and now Qt5.3 - its all getting kind of confusing for me, and I have been around Qt for a while. So how about the person just starting out. Hope for everyone's sake all of this gets simplified

      The technology has 2 parts:

      • "QML" is the name of the declarative language that Nokia invented.
      • "Qt Quick" is the name of the technology that lets you create UIs, using the QML language.

      Qt Quick also has submodules to provide different features. (The names are very logical, IMHO):

      • Qt Quick Controls lets you create traditional desktop controls (widgets) using Qt Quick
      • Qt Quick Layouts lets you do layout management in Qt Quick
      • Qt Quick Dialogs lets you easily create dialogs using Qt Quick

      "Qt Declarative" is the old name for QML + Qt Quick, because it uses a declarative language. (In contrast, C++ is an imperative language.) The name "Qt Declarative" is not used any more.

      I hope it is less confusing for you now! (Do you have any suggestions on how to simplify the names?)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DBoosalis
        wrote on last edited by
        #3

        Thanks for the clarification. That helps a lot, as far as suggestions I think Qt gets a little over used and seems redundant for "Qt Quick", why not just call it "Quick",

        1 Reply Last reply
        0
        • P Offline
          P Offline
          phamuc
          wrote on last edited by
          #4

          @JSKH Thank you for the theory overview.

          But how do I find the highest version of ie. Qt Quick Control (or Qt Quick Layouts, QML, ...)
          that is useble in Qt 5.3? Qt 5.4 may have a higher version of Qt Quick Control that is not usable in Qt5.3.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            phamuc
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              [quote author="phamuc" date="1423740641"]@JSKH Thank you for the theory overview.

              But how do I find the highest version of ie. Qt Quick Control (or Qt Quick Layouts, QML, ...)
              that is useble in Qt 5.3? Qt 5.4 may have a higher version of Qt Quick Control that is not usable in Qt5.3.[/quote]Hi, and welcome to the Qt Dev Net!

              That's a good question. Unfortunately, there is currently no good way to find the exact version.

              Why do you ask? Do you need to support multiple versions of Qt?

              1 Reply Last reply
              0
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7
                This post is deleted!
                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