Maybe i did not cleary note at question: I placing all qml files related to
module (main.qml, Style.qml) into "qml" subdirectory (it was working
until i try to use singletons)
If i add ".qml" to the URI then QQmlApplicationEngine fails to load
component from either QUrl url1(u"qrc:/untitled/qml/mai
Qt 6.4.2 QML singleton's properties undefined if singleton QML file
placed in subdirectory e.g "/qml" (${CMAKE_SOURCE_DIR}/qml/Style.qml)
You should not place your QML files in a different directory than the
module (as denoted by the generated qmldir file). Otherwise their
implicit import is n
Qt 6.4.2 QML singleton's properties undefined if singleton QML file placed
in subdirectory e.g "/qml" (${CMAKE_SOURCE_DIR}/qml/Style.qml)
set_source_files_properties(Style.qml PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
qt_add_qml_module(untitled
URI untitled
VERSION 1.0
QML_FILES qml/main.qml qml/St