Using a marketplace project in a Qt 5.15 application
-
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
-
Hi,
Check the example. You have both a
.profile and aCMakeLists.txt.From the looks of it, this module integrates directly in QtQuick so nothing really particular to do on that front.
@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
-
Well, if you take a look at the examples of the module, you'll see that both
.profiles andCMakeLists.txtare provided. -
Well, if you take a look at the examples of the module, you'll see that both
.profiles andCMakeLists.txtare provided.@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?
-
What do you want to build exactly ?
-
@SGaist I want to have a working TreeView in my Qt 5.15.7 qml project which is built with cmake
-
Then why don't you just build and install that module and then use it in your project as the
README.mdshows you ?