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

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

    XMLWordPrintable

Details

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

    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

        For Gerrit Dashboard: QTBUG-95540
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes