Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
6.5, 6.7
-
None
-
-
f4fc10172 (dev), 5911f307e (6.7)
-
DaVinci 97
Description
Thanks for creating https://doc.qt.io/qt-6/qml-singleton.html this was really something missing .
I noticed though that the https://doc.qt.io/qt-6/qml-singleton.html#defining-singletons-in-qml says that we need to write
pragma singleton
I think it should be:
pragma Singleton
Not writing singleton with a capital S leads to a compile error error:
Error compiling qml file: C:/work/Qt/SingletonForFonts/Globals.qml:1:1: error: Unknown pragma 'singleton'
Attachments
Issue Links
- is duplicated by
-
QTBUG-126212 Typo in QML Singleton documentation
- Closed