KDAB / KDDockWidgets

KDAB's Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets
Other
754 stars 163 forks source link

How to install the module com.kdab.dockwidgets? #428

Closed winnerLu closed 10 months ago

winnerLu commented 10 months ago

acc683c2525150d76272f78b9fdddc6

iamsergio commented 10 months ago

Do you get an actual build error, or is that just QtCreator code model nagging ?

winnerLu commented 10 months ago

I use the example build with the same error, but the build is fine and the program works fine. But when I create a new project, and also import this module, the build gives me an error saying that the module is not found.

winnerLu commented 10 months ago

Do you get an actual build error, or is that just QtCreator code model nagging ?

I use the example build with the same error, but the build is fine and the program works fine. But when I create a new project, and also import this module, the build gives me an error saying that the module is not found.

iamsergio commented 10 months ago

That's some warning in the QtCreator QML code model.

It's out of scope for KDDW to fix and I don't use QtCreator. See for example https://forum.qt.io/topic/133555/qml-module-not-found-but-app-is-running/5 for clues.

The warning is benign though, and should not impact the usage.

winnerLu commented 10 months ago

That's some warning in the QtCreator QML code model.

It's out of scope for KDDW to fix and I don't use QtCreator. See for example https://forum.qt.io/topic/133555/qml-module-not-found-but-app-is-running/5 for clues.

The warning is benign though, and should not impact the usage.

Sorry, I didn't express myself clearly. When I create a new project, the build fails. The error message is reported below: qrc:/untitled11/Main.qml:3:1: module "com.kdab.dockwidgets" is not installed

iamsergio commented 10 months ago

Ok. Can you upload your project to GitHub so I can have a look and fix ? I don't know what's causing it for you, so I need to have a look.

winnerLu commented 10 months ago

Ok. Can you upload your project to GitHub so I can have a look and fix ? I don't know what's causing it for you, so I need to have a look.

Thank you very much. I've solved it. Needed to Initializes the desired frontend in main.cpp. But since the compiler didn't find the module, there were no code hints as well as auto-completion. It doesn't affect the use, but it would be great to give some clues. I think it has to do with the files QmlTypes.h and QmlTypes.cpp where the module is registered. But I didn't find these two files in the location where I installed KDDW and couldn't bring them in.

Translated with www.DeepL.com/Translator (free version)