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

Provide singletons as an alternative to Qt.<someObject> properties

XMLWordPrintable

    • 0f0987c160 (qt/qtdeclarative/dev) 0f0987c160 (qt/tqtc-qtdeclarative/dev)

      In Qt 6.2, we made Application available as a singleton. There are however further types which deserve the same treatment:

      • platform,
      • inputMethod and
      • styleHints

      At least the variants provided by the QtQuick module should be exposed as singletons. This will provide better type information, and avoids the "this property only exists on the object if Quick has been imported" issue.

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

            max.goldstein Maximilian Goldstein
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes