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

Material style ToolButton's ripple/hover effect breaks when text is cleared on click

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.8
    • Quick: Controls 2
    • None

    Description

      import QtQuick 2.6
      import QtQuick.Layouts 1.3
      import QtQuick.Controls 2.1
      
      ApplicationWindow {
          visible: true
          width: 400
          height: 280
      
          Column {
              anchors.centerIn: parent
      
              ToolButton {
                  text: "Ctrl+M"
      
                  onClicked: text = ""
              }
          }
      }
      

      The use case for this is to provide a way for the user to edit shortcuts, hence clearing the existing shortcut text when the button gets focus.

      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
            mitch_curtis Mitch Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes