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

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

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

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

          Activity

            People

            Assignee:
            qtqmlteam Qt Qml Team User
            Reporter:
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes