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

QQuickAbstractButton ignores SH_ToolButtonStyle

    XMLWordPrintable

Details

    • All

    Description

      Private class hardcodes display to TextBesideIcon and the style appears to never change it from that to SH_ToolButtonStyle. As a result the platform theme hint (when available - as is the case on e.g. KDE Plasma) is ignored.

       

      ```
      QQuickAbstractButton::Display display = QQuickAbstractButton::TextBesideIcon;

      ```

      // SPDX-License-Identifier: BSD-2-Clause
      // SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>
      
      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      ToolButton {
          width: 100
          height: width
          action: Action {
              text: "meow"
              icon.name: "window-close"
          }
      }
      

       

      Attachments

        1. main.qml
          0.3 kB
        2. main-1.qml
          0.3 kB
        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
            apachelogger Harald Sitter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes