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



  • 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


  • Moderators

    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 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?)



  • 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",



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



  • This post is deleted!

  • Moderators

    [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?


  • Moderators

    This post is deleted!

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.