Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. What is the magic decoder ring for matching library versions in QML?
Qt 6.11 is out! See what's new in the release blog

What is the magic decoder ring for matching library versions in QML?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 1.4k 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.
  • P Offline
    P Offline
    PJM4B
    wrote on last edited by
    #1

    I'm a novice to QML and have been having trouble grokking the library versions and properties in the QML framework.

    Which version of various libraries do I use? If I grep the examples directory I get something like this:

    pmoran@EB840PMORAN MINGW64 /c/Qt/Examples/Qt-5.10.1
    $ grep -r QtQuick.Controls . | cut  -d ':' -f4 | sort -u
    
            qputenv("QT_QUICK_CONTROLS_1_STYLE", "
        import QtQuick.Controls.Material 2.1
    /ExtrasImports/QtQuick/Controls/Styles/Flat");
    \printuntil import QtQuick.Controls 2.1
    Binary file ./datavisualization/build-qmlsurface-Desktop_Qt_5_10_1_MinGW_32bit-Debug/debug/qmlsurface.exe matches
    Binary file ./datavisualization/build-qmlsurface-Desktop_Qt_5_10_1_MinGW_32bit-Debug/debug/qrc_qmlsurface.o matches
    import QtQuick.Controls 1.0
    import QtQuick.Controls 1.0 as Controls
    import QtQuick.Controls 1.1
    import QtQuick.Controls 1.2
    import QtQuick.Controls 1.4
    import QtQuick.Controls 1.4 as Controls
    import QtQuick.Controls 1.5
    import QtQuick.Controls 2.0
    import QtQuick.Controls 2.0 as C2
    import QtQuick.Controls 2.0 as QQ2
    import QtQuick.Controls 2.0 as QQC2
    import QtQuick.Controls 2.1
    import QtQuick.Controls 2.1 as QQC2
    import QtQuick.Controls 2.2
    import QtQuick.Controls 2.3
    import QtQuick.Controls.Imagine 2.3
    import QtQuick.Controls.Material 2.0
    import QtQuick.Controls.Material 2.1
    import QtQuick.Controls.Material 2.2
    import QtQuick.Controls.Private 1.0
    import QtQuick.Controls.Private 1.0 as QQCPrivate
    import QtQuick.Controls.Styles 1.0
    import QtQuick.Controls.Styles 1.1
    import QtQuick.Controls.Styles 1.2
    import QtQuick.Controls.Styles 1.3
    import QtQuick.Controls.Styles 1.4
    import QtQuick.Controls.Styles.Flat 1.0 as Flat
    import QtQuick.Controls.Universal 2.1
    
    
    

    As you can see I get QtQuickControl version 1.0, 1.1, 1.4, 1.5, 2.0, 2.1, 2.2, 2.3. How do I mix and match components?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      For new projects. use QtQuick.Controls version 2 as their performances are way better than the version 1. You can mix both if the control you need is not available in QtQuick.Controls 2.

      Otherwise it boils down to the minimal version that provides the features you need and the compatibility you want.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • P Offline
        P Offline
        PJM4B
        wrote on last edited by
        #3

        I think my question wasn't formulated correctly.
        I am wondering how to match the correct versions of libraries.
        For example how would I know that these libraries all go together?

        import QtQuick 2.1
        import QtQuick.Layouts 1.3
        import QtQuick.Controls 2.3
        import QtQuick.Window 2.3
        import QtQuick.Scene3D 2.0

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You can see that in the documentation of the types you are using.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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