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

Document all available properties in Qt Quick Universal Style, including the readonly ones

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.3
    • None
    • All

    Description

      The docs for the Universal style only include 4 properties: https://doc.qt.io/qt-6/qtquickcontrols-universal.html

      Namely accent, background, foreground and theme.

      But in reality a lot more properties are available. One need just look at the source code for TextField: https://github.com/qt/qtdeclarative/blob/dev/src/quickcontrols/universal/TextField.qml

      These properties under Universal such as chromeWhiteColor, chromeDisabledLowColor, chromeBlackMediumLowColor, baseMediumColor are all entirely available when writing QML code. In fact we are already using them to make custom components compatible with the Universal style. It makes sense to document them as such.

      Seems like they are all defined in https://github.com/qt/qtdeclarative/blob/bc5e56bcce2618b7810cf2f4007bf4370dc3bbc9/src/quickcontrols/universal/qquickuniversalstyle.cpp

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            andreimiculita andreimiculita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes