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

ButtonGroup does not work with Windows style Button

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      If user tries to create a exclusive group of checkable buttons with ButtonGroup, it does not work anymore in Qt6, it works fine with 5.15.4. In following code, user can check all the buttons, It works fine with RoundButton. Issue is only with Button.

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          title: "qtbug95033"
          visible: true
      
          ButtonGroup {
              buttons: column.children
          }
          Column {
              id: column
              anchors.fill: parent
              Button  {
                  checked: true
                  text: qsTr("DAB")
                  checkable: true
              }
              Button  {
                  text: qsTr("FM")
                  checkable: true
              }
      
              Button  {
                  text: qsTr("AM")
                  checkable: true
              }
          }
      }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            smd Jan Arve
            Reporter:
            shmittal Shveta Mittal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes