[Interest] QML singleton properties are undefined if file placed in subdirectory

Maxim maxim.bescherevnykh at gmail.com
Mon Mar 6 21:56:56 CET 2023

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)

URI untitled
QML_FILES qml/main.qml qml/Style.qml

Is it Qt bug or an something extra should be declared when qml files not
lay directly in project root?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230306/608233fa/attachment.htm>

More information about the Interest mailing list