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

ToggleButton QML Size not used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.7.0
    • Quick: Controls 1

    Description

      ToggleButton does not use the set width and height. Tested in a Gridlayout.
      Works fine:

      Rectangle { width: Screen.desktopAvailableWidth/5; height: Screen.desktopAvailableWidth/5; color: "green" }
      

      Wrong size:

              ToggleButton {
                      id: button1
                      width: Screen.desktopAvailableWidth/5
                      height: Screen.desktopAvailableWidth/5
                      Image {
                          anchors.centerIn: parent
                          width: parent.width * 0.7
                          height: parent.height * 0.7
                          source: "qrc:/images/test.png"
                      }
                  }
      

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes