Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Using a marketplace project in a Qt 5.15 application
Forum Updated to NodeBB v4.3 + New Features

Using a marketplace project in a Qt 5.15 application

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 2 Posters 650 Views 2 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.
  • C Offline
    C Offline
    Creaperdown
    wrote on last edited by Creaperdown
    #1

    Hey, I want to use a TreeView in my Qt 5.15 qml project. Multiple people have recommended me not to use the integrated one and recommended this one https://code.qt.io/cgit/qt-extensions/qttreeview.git/tree/?h=6.1. How exactly would I be able to integrate this into my project, I've never worked with this kind of packages before, do I need to link something or add it to my CMakeLists.txt file?

    Thanks for any help in advance.

    EDIT: I need to build it with cmake

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

      Hi,

      Check the example. You have both a .pro file and a CMakeLists.txt.

      From the looks of it, this module integrates directly in QtQuick so nothing really particular to do on that front.

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

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Check the example. You have both a .pro file and a CMakeLists.txt.

        From the looks of it, this module integrates directly in QtQuick so nothing really particular to do on that front.

        C Offline
        C Offline
        Creaperdown
        wrote on last edited by Creaperdown
        #3

        @SGaist Thanks for the reply! Does this also work with cmake? I've seen a notion somewhere that it only works with qmake for projects using Qt 5

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

          Well, if you take a look at the examples of the module, you'll see that both .pro files and CMakeLists.txt are provided.

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

          C 1 Reply Last reply
          0
          • SGaistS SGaist

            Well, if you take a look at the examples of the module, you'll see that both .pro files and CMakeLists.txt are provided.

            C Offline
            C Offline
            Creaperdown
            wrote on last edited by
            #5

            @SGaist But it also says that for versions < Qt 6 one should use the .pro file. Is there a workaround for that or can I somehow build the .pro from my top-level cmake file?

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

              What do you want to build exactly ?

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

              C 1 Reply Last reply
              0
              • SGaistS SGaist

                What do you want to build exactly ?

                C Offline
                C Offline
                Creaperdown
                wrote on last edited by
                #7

                @SGaist I want to have a working TreeView in my Qt 5.15.7 qml project which is built with cmake

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

                  Then why don't you just build and install that module and then use it in your project as the README.md shows you ?

                  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