How to load a component
-
Good evening I am using Qt 9.0.1 and QtQuick 6.4, and I have a problem with the execution of my program:
QQmlApplicationEngine failed to load component
qrc:/Note-Black/main.qml:25:5: MyMenu is not a typeI want to use the "MyMenu" component (defined in "MyMenu.qml") imported the file
But it doesn't work.
Any ideas?
Thank you
-
@Fortiga said in How to load a component:
MyMenu.qml
Is
MyMenu.qml
in the same directory asmain.qml
? Have you added this file to your qml resources? -
Good evening I am using Qt 9.0.1 and QtQuick 6.4, and I have a problem with the execution of my program:
QQmlApplicationEngine failed to load component
qrc:/Note-Black/main.qml:25:5: MyMenu is not a typeI want to use the "MyMenu" component (defined in "MyMenu.qml") imported the file
But it doesn't work.
Any ideas?
Thank you
-
@Fortiga said in How to load a component:
MyMenu.qml
Is
MyMenu.qml
in the same directory asmain.qml
? Have you added this file to your qml resources? -
@Pl45m4
in fact yes they have in the same directory
I use a resource file it contains nothing -
F Fortiga has marked this topic as solved on