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. Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView)
Forum Updated to NodeBB v4.3 + New Features

Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
7 Posts 4 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.
  • mbruelM Offline
    mbruelM Offline
    mbruel
    wrote on last edited by
    #1

    Hi,

    Is there a way to continue to use TreeView from QtQuick v1.4 that was available for Qt v5.15?
    My app is using it for a view, cf my Library.qml
    I'm getting this error with Qt v6.1.2:

    QQmlApplicationEngine failed to load component
    qrc:/main.qml:125:9: Type MainApp unavailable
    qrc:/MainApp.qml:823:9: Type Library unavailable
    qrc:/Library.qml:22:1: module "QtQuick.Controls" version 1.4 is not installed
    04:36:54: /Users/mb/Desktop/github/ClementineRemote/build-ClementineRemote-Qt_6_1_2_for_macOS-Debug/ClemRemote.app/Contents/MacOS/ClemRemote exited with code 255
    

    I'm only building with Qt6 on macOS in order to publish the app in the Apple Store. For Android and Desktop versions I'll stick with Qt5.15.

    It would be quite boring to have a new version of my Library.qml only when Qt6 is used... and is there a way to test the Qt version directly in QML?

    1 Reply Last reply
    0
    • MarkkyboyM Offline
      MarkkyboyM Offline
      Markkyboy
      wrote on last edited by
      #2

      @mbruel said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

      QtQuick v1.4

      Does this help?;

      https://doc.qt.io/qt-5/qtquickcontrols1-index.html

      Don't just sit there standing around, pick up a shovel and sweep up!

      I live by the sea, not in it.

      mbruelM 1 Reply Last reply
      0
      • MarkkyboyM Markkyboy

        @mbruel said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

        QtQuick v1.4

        Does this help?;

        https://doc.qt.io/qt-5/qtquickcontrols1-index.html

        mbruelM Offline
        mbruelM Offline
        mbruel
        wrote on last edited by
        #3

        @Markkyboy said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

        Does this help?;

        not really. QtQuick.Controls v1 was deprecated on Qt5 so I supposed it was removed from Qt6. would it be a way to still make it work on Qt6?

        J.HilkJ 1 Reply Last reply
        0
        • mbruelM mbruel

          @Markkyboy said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

          Does this help?;

          not really. QtQuick.Controls v1 was deprecated on Qt5 so I supposed it was removed from Qt6. would it be a way to still make it work on Qt6?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @mbruel
          Nope, not as far as I know,

          You're now required to buy rent the treeview module in the marketplace or publish your app via GPL

          alternatively you create your own treeview or use some of the repos linked in the related bug report thread

          https://bugreports.qt.io/browse/QTBUG-61630


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          mbruelM 1 Reply Last reply
          1
          • J.HilkJ J.Hilk

            @mbruel
            Nope, not as far as I know,

            You're now required to buy rent the treeview module in the marketplace or publish your app via GPL

            alternatively you create your own treeview or use some of the repos linked in the related bug report thread

            https://bugreports.qt.io/browse/QTBUG-61630

            mbruelM Offline
            mbruelM Offline
            mbruel
            wrote on last edited by
            #5

            @J-Hilk said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

            You're now required to buy rent the treeview module in the marketplace or publish your app via GPL

            sounds like there is no more a GPL version is it? I've read a guy developing a GPL app bought the licence for a year, found a bug but wouldn't have any support as he didn't have Qt commercial licence...

            I participated on the forums to complain about that Qt policy to remove Treeview from the original package. what a shame!
            Personally I'll boycott Qt6 and stick with Qt5 for as long a I can. I thought I'd have to switch to Qt6 for working with iOS v14 and XCode 12 but it seems it is supported by Qt5 even if not indicated in the doc...

            alternatively you create your own treeview or use some of the repos linked in the related bug report thread

            is there any nice (L)GPL Trreview available (outside from Qt)? isn't it possible to use the Treeview code from QtQuick.Controls v1 in order to get inspired and recreate our own Treeview?

            Well I guess we will need a topic on its own for TreeView on this forum ;)

            J.HilkJ 1 Reply Last reply
            0
            • mbruelM mbruel

              @J-Hilk said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

              You're now required to buy rent the treeview module in the marketplace or publish your app via GPL

              sounds like there is no more a GPL version is it? I've read a guy developing a GPL app bought the licence for a year, found a bug but wouldn't have any support as he didn't have Qt commercial licence...

              I participated on the forums to complain about that Qt policy to remove Treeview from the original package. what a shame!
              Personally I'll boycott Qt6 and stick with Qt5 for as long a I can. I thought I'd have to switch to Qt6 for working with iOS v14 and XCode 12 but it seems it is supported by Qt5 even if not indicated in the doc...

              alternatively you create your own treeview or use some of the repos linked in the related bug report thread

              is there any nice (L)GPL Trreview available (outside from Qt)? isn't it possible to use the Treeview code from QtQuick.Controls v1 in order to get inspired and recreate our own Treeview?

              Well I guess we will need a topic on its own for TreeView on this forum ;)

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by J.Hilk
              #6

              @mbruel said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

              sounds like there is no more a GPL version is it? I've read a guy developing a GPL app bought the licence for a year, found a bug but wouldn't have any support as he didn't have Qt commercial licence...

              well it clearly states:
              7e8ec74c-1ce0-4d11-bfd8-b84654c19066-image.png
              also available GPLv3 but I couldn't find a link or repository. I assume contacting the sales department/customersupport has to help here
              Found it, a little bit hidden, but there:
              ffed6b1c-9780-4752-836d-943d406718ff-image.png

              Also No Qt6 support yet, which is hilarious.

              Personally I'll boycott Qt6 and stick with Qt5 for as long a I can.

              We can't upgrade to Qt6 with all the modules that we need, and that currently aren't even all available yet, it would be much more expensive than the Qt5 version currently

              So I'm with Qt5 until LTS support is gone, and we'll have to reevaluate what we do than 🤷‍♂️


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              raven-worxR 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @mbruel said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

                sounds like there is no more a GPL version is it? I've read a guy developing a GPL app bought the licence for a year, found a bug but wouldn't have any support as he didn't have Qt commercial licence...

                well it clearly states:
                7e8ec74c-1ce0-4d11-bfd8-b84654c19066-image.png
                also available GPLv3 but I couldn't find a link or repository. I assume contacting the sales department/customersupport has to help here
                Found it, a little bit hidden, but there:
                ffed6b1c-9780-4752-836d-943d406718ff-image.png

                Also No Qt6 support yet, which is hilarious.

                Personally I'll boycott Qt6 and stick with Qt5 for as long a I can.

                We can't upgrade to Qt6 with all the modules that we need, and that currently aren't even all available yet, it would be much more expensive than the Qt5 version currently

                So I'm with Qt5 until LTS support is gone, and we'll have to reevaluate what we do than 🤷‍♂️

                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @J-Hilk said in Qt6 : how to use QtQuick.Control v1.4? (for the old TreeView):

                We can't upgrade to Qt6 with all the modules that we need, and that currently aren't even all available yet

                Qt 6.2 comes end of the month and then catches up with the modules compared to Qt 5

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                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