Thanks Alexandru !
I was indeed toying around with QML_FOREIGN to overcome some of those
limits, but, as I reported in a separate mail yesterday, I also encountered
problems, where a "foreign" type from a separate library generated
```Warning: Refusing to generate non-lowercase name "A" for unknown
Hi,
As far as I know this currently doesn't work, and is a variation of the
following bug report:
https://bugreports.qt.io/browse/QTBUG-122702
After a very quick scan, I believe the docs don't mention this limitation.
The happy path for qml modules is to have the library / executable created in
Thanks James,
I'm not sure your suggestion works for me. But to even consider hacking
around a limitation, I need to understand the limitation. Hence I'm asking:
is something wrong in the way I approach this ? Is my code layout not
supported ? I couldn't find any documentation related to this...
Hi Stefan,
Here’s what works for me in Qt 6.5+:
In A/CMakeLists.txt:
add_subdirectory(qml)
In A/qml/CMakeLists.txt:
qt_add_library(qml STATIC)
qt_add_qml_module(qml
URI qml
QML_FILES