Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126212

Typo in QML Singleton documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 6.7.0
    • Documentation
    • None
    • Qt Documentation
    • All

      In the documentation on Singletons in QML: https://doc.qt.io/qt-6/qml-singleton.html
      in the section on defining singletons, it is stated that 'pragma singleton' should be added, but singleton word is written with a lower case letter and should be written with an upper case letter:

      If you use a lowercase name, the qml file will not be built (error: Unknown pragma 'singleton')

      It should be like this:

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            docteam Qt Documentation Team
            enshin258 Jakub Wincenciak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes