Coder Social home page Coder Social logo

Comments (7)

iamsergio avatar iamsergio commented on July 29, 2024

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

from kddockwidgets.

winnerLu avatar winnerLu commented on July 29, 2024

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.

from kddockwidgets.

winnerLu avatar winnerLu commented on July 29, 2024

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.

from kddockwidgets.

iamsergio avatar iamsergio commented on July 29, 2024

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.

from kddockwidgets.

winnerLu avatar winnerLu commented on July 29, 2024

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

from kddockwidgets.

iamsergio avatar iamsergio commented on July 29, 2024

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.

from kddockwidgets.

winnerLu avatar winnerLu commented on July 29, 2024

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)

from kddockwidgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.