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

Material style hover effects inconsistent between similarly-sized ToolButtons

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.8.0 Alpha
    • 5.8.0 Alpha
    • Quick: Controls 2
    • None
    • 038a0c308a03977d3694e16b31c1cf7c7e1a5611

    Description

      In the GIF below, only "TOOLS" has a rectangular hover effect, making it stand out from the others. This is a bit jarring, as it implies that there is some special meaning for that button.

      import QtQuick 2.7
      import QtQuick.Layouts 1.1
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
      
          Shortcut {
              sequence: "Ctrl+Q"
              onActivated: Qt.quit()
          }
      
          header: ToolBar {
              RowLayout {
                  ToolButton {
                      text: qsTr("File")
                      hoverEnabled: true
                  }
      
                  ToolButton {
                      text: qsTr("Edit")
                      hoverEnabled: true
                  }
      
                  ToolButton {
                      text: qsTr("Tools")
                      hoverEnabled: true
                  }
              }
          }
      }
      

      Attachments

        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: