Am 31.08.24 um 23:06 schrieb Dirk Hohndel via Interest:
Yeah, I need one place where I can load my "main" QML file, and I need a way to make my C++ classes visible from within those QML files.
So I'm not sure how I'd do that with only one "load"...

In Qt5 I used the "load" to get the main.qml file and then RegisterType to get my C++ classes visible inside the QML code.
In your example, how do you load your QML file?

|engine.*loadFromModule*("Ekke/Apps/Main", "Main"); from my Main.qml I can access all my other qml files as listed in qt_add_qml_module() and also work with QML_ELEMENT and QML_SINGLETON ekke |


/D
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to