This forum has been archived. All content is frozen. Please use KDE Discuss instead.

New Kirigami project shows QML module not found warning

Tags: None
(comma "," separated)
mrok
Registered Member
Posts
2
Karma
0
Hi all,

I created a new KDevelop project "HelloKirigami" with the template Qt > Graphical > Kirigami Application.
I ran into few issues but I was able to solve most of them with Google-fu except for this "Module not found" warning in the generated About.qml.
Code: Select all
...
import org.kde.kirigami 2.19 as Kirigami
import org.kde.HelloKirigami 1.0 <= Module not found, some types or properties may not be recognized

I'm quite new to QML but as far as I can tell this module/type is registered in main.cpp.
Code: Select all
AboutType about;
qmlRegisterSingletonInstance("org.kde.HelloKirigami", 1, 0, "AboutType", &about);

I found a Stackoverflow post describing a similar issue so i added this line to main.cpp.
Code: Select all
qmlRegisterType<AboutType>("org.kde.HelloKirigami", 1, 0, "AboutType");

but the warning persists, I can also see this warning in the "Problems > Parser" tools window.

The project builds and runs fine but it just bugs me to see a warning like this.
Is this a known issue of Kdevelop? I searched the bug database but I couldn't find any mention of this issue.

I'm on Manjaro KDE using KDevelop 5.8.220401 (22.04.1) with KDE framework 5.94.0 and QT 5.15.4 (built against 5.15.3).


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]