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

Incorrect color for disabled status in check indicator and radio indicator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.10.1
    • Fix Version/s: 5.11.0 Beta 3
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Qt 5.10.1
    • Commits:
      80a8317fc43862db4c1dda069a9e4c221113c6e1

      Description

      In Material style, check indicator and radio indicator do not show a correct color for the disabled status, even if they are checked they show color of ascent.

      I attach an example code with Checkboxes, RadioButtons, CheckDelegates and RadioDelegates

      import QtQuick 2.10
      import QtQuick.Controls 2.3
      import QtQuick.Layouts 1.3
      
      ApplicationWindow {
          visible: true
          width: 480
          height: 600
          title: qsTr("Tabs")
      
          header: ToolBar {
              Label {
                  text: "Indicator without disable state"
                  anchors.centerIn: parent
              }
          }
      
          Flickable {
              anchors.fill: parent
              anchors.margins: 20
              contentHeight: layout.implicitHeight
              ScrollIndicator.vertical: ScrollIndicator{}
      
              ColumnLayout {
                  id: layout
                  anchors.fill: parent
      
                  CheckBox {
                      Layout.fillWidth: true
                      text: "Enable Checkbox"
                  }
                  CheckBox {
                      Layout.fillWidth: true
                      text: "Disable Checkbox"
                      enabled: false
                  }
                  CheckBox {
                      Layout.fillWidth: true
                      text: "Disable checked Checkbox"
                      enabled: false
                      checked: true
                  }
                  RadioButton {
                      Layout.fillWidth: true
                      text: "Enable RadioButton"
                  }
                  RadioButton {
                      Layout.fillWidth: true
                      text: "Disable RadioButton"
                      enabled: false
                  }
                  RadioButton {
                      Layout.fillWidth: true
                      text: "Disable checked RadioButton"
                      enabled: false
                      checked: true
                  }
                  CheckDelegate {
                      Layout.fillWidth: true
                      text: "Enable CheckDelegate"
                  }
                  CheckDelegate {
                      Layout.fillWidth: true
                      text: "Disable CheckDelegate"
                      enabled: false
                  }
                  CheckDelegate {
                      Layout.fillWidth: true
                      text: "Disable checked CheckDelegate"
                      enabled: false
                      checked: true
                  }
                  RadioDelegate {
                      Layout.fillWidth: true
                      text: "Enable RadioDelegate"
                  }
                  RadioDelegate {
                      Layout.fillWidth: true
                      text: "Disable RadioDelegate"
                      enabled: false
                  }
                  RadioDelegate {
                      Layout.fillWidth: true
                      text: "Disable checked RadioDelegate"
                      enabled: false
                      checked: true
                  }
              }
          }
      }
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              camilo_del_real Camilo José del Real
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes