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

SpinBox indicators stay hovered after being pressed and moving the mouse away

    XMLWordPrintable

Details

    • 2431853d824c6416f2cb760485df5cb4c27db7e5 (qt/qtquickcontrols2/5.12)

    Description

      Can be seen with styles that visualise hover state (such as the Material style), or by customising an indicator:

      import QtQuick 2.5
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          SpinBox {
              id: mySpinBox
              from: 0
              to: 100
              value: 32
              up.indicator: Rectangle {
                  id: upIndicator
                  x: parent.width - width
                  y: (parent.height - height) / 2
                  implicitHeight: 40
                  implicitWidth: 40
                  color: mySpinBox.up.pressed ? "red" : (mySpinBox.up.hovered ? "blue" : "grey")
              }
          }
      }
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes