Unqualified access warning on singleton object with QML_NAMED_ELEMENT
Unsolved
QML and Qt Quick
-
I have a singleton QObject declared with
QML_NAMED_ELEMENT(MySingleton)
and in QML file I just useMySingleton
to access it. When I run qmllint on the file, I get anUnqualified access
warning. Is this a false positive?How would I:
- Tell qmllint that this is a named singleton so the access is not unqualified, OR
- Qualify the access to the named singleton?
I use CMake and
qt_add_qml_module
withQT_QML_GENERATE_QMLLS_INI
turned on, if it affects how I achieve the first item above.