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

QCheckBox cannot be checked with plus (+) or unchecked with minus (-) key (Qt::Key_Plus / Qt::Key_Minus)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2
    • None
    • git branch 5.15.2, qbase commit 40143c189b7c1bf3c2058b77d00ea5c4e3be8b28 (tag v5.15.2)
    • Windows

    Description

      QCheckBox cannot be checked using the + key on the keyboard or unchecked using the - key on the keyboard when the widget is focused. As this is Windows default functionality (check the Properties on any file in the windows explorer and try it out with the read-only and hidden attribute checkboxes), our customers expect Qt's checkboxes to work the same.

      Steps to reproduce:

      • Build and launch qtbug89570.zip
      • Note: The checkbox is not checked to begin with.

      Plus key:

      • Press +
      • EXPECTED: Checkbox is checked.
      • ACTUAL: Checkbox remains unchecked.

      Minus key:

      • Press the space key on the keyboard.
      • Note: This toggles the checkbox state to checked and is necessary to demonstrate the minus key example as long as this bug is not fixed.
      • Press -
      • EXPECTED: Checkbox is unchecked.
      • ACTUAL: Checkbox remains checked.

      Note that neither the plus nor the minus key should toggle the state of the checkbox (like pressing space would). Plus only checks, minus only unchecks, that is pressing plus on an already checked checkbox does not change the state. Neither does pressing minus on an already unchecked checkbox.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            wscherer Walter Scherer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes