ec1oud / grefsen

A Qt/Wayland desktop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QML Module not found

stellarpower opened this issue · comments

> /p/C/B/W/S/W/g/build on master ⨯ ./grefsen
QML debugging is enabled. Only use this in a safe environment.

Screen "HDMI-1" QRect(0,0 1920x1080) QSizeF(478, 269) DPI: log 106 phys 102.001 DPR 1
Screen "VGA-1" QRect(1920,0 1600x900) QSizeF(432, 236) DPI: log 106 phys 95.4692 DPR 1
highest DPR 1 -> cursor size 32
QQmlApplicationEngine failed to load component
qrc:/qml/main.qml:30:19: Type Screen unavailable
qrc:/qml/Screen.qml:22:1: module "Grefsen" is not installed
ASSERT: "!isEmpty()" in file /opt/Qt/5.15.2/gcc_64/include/QtCore/qlist.h, line 361
fish: './grefsen' terminated by signal SIGABRT (Abort)

Looks like I need to export an appropriate path for the grefsen QML module to be found:
screen.qml:

import QtQuick 2.6
import Grefsen 1.0

Image {

Any advice on where I should point it please? Never really used QML before - does it get the custom module from a shared library, or is it actually looking for a QML file?

Thanks!

I stand corrected, I had missed that that was a resource path. Although I presume it amounts to the same, it's not getting pointed to itself in order to load in the plugin at runtime.