Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML Module not found with registered types



  • I have the following Issue:

    In main.qml

    f5bb7882-0104-47bb-be23-e2d160bc7c2c-image.png

    These types are registered in main.cpp:

    e745d480-b943-490b-9bba-f253dc8f4974-image.png

    Thse classes are defined in the include folder:

    My folder structure looks like this:

    a4997bc8-5c83-459d-85e0-de8fb6eade18-image.png

    Do I have to modify QML_IMPORT_PATH in the pro file? I added src and include folder but it does not work:

    QML_IMPORT_PATH += src
    QML_IMPORT_PATH += include
    

Log in to reply