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

QtQuick Controls 2's Switch component shows disabled colours when enabled at creation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • None
    • 5.9.0, 5.9.1, 5.10.0 Alpha
    • Quick: Controls 2
    • None
    • Tested with Qt 5.9.0, 5.9.1 and 5.10 alpha on Ubuntu 16.04

      Tested with Qt 5.9.0 on Android 7.0

    Description

      Adding a Switch that starts in an enabled condition ("position: 1") results it the switch being displayed in the on position, but being styled as if it was off. Clicking on the switch then results in the switch remaining in the current location but having the correct colours applied to it.

      Here's a quick QML app demonstrating this:

      main.qml

       

      Expected result:

       

      Actual result:

       

      Attachments

        1. main.qml
          0.2 kB
        2. test_switch_expected.png
          test_switch_expected.png
          10 kB
        3. test_switch_fail.png
          test_switch_fail.png
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            elleo Michael Sheldon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes