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

Typo in QML Singleton documentation

    XMLWordPrintable

Details

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

    Description

      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:

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes