title: QML ToolButton not resizing
body: <p>I can't figure out why my ToolButton is so small.  The ToolBar is the orange rectangle on the top.  The following code:</p>
  
  <pre><code>Item{
  
      ToolBar{
          id: toolbar
          width: parent.width
          height: scaleDP(0.29)
          anchors.top: parent.top
  
          background: Rectangle{
              color: "orange"
          }
  
          RowLayout{
              anchors.fill: parent
  
  
              ToolButton {
                  id: buttonBack
                  height: parent.height
                  width: parent.height
                  Image {
                      id: imageBack
                      source: "qrc:/assets/images/left-filled-black-50.png"
                      anchors.fill: parent
                      anchors.margins: 4
                  }
  
  
              }
  </code></pre>
  
  <p>Shows my ToolButton so small:</p>
  
  <p><a href="https://i.stack.imgur.com/eRNTn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eRNTn.jpg" alt="enter image description here"></a></p>
  
  <p>I can change the height of the Image and makes it bigger but then its outside the ToolButton.  When I try to resize the height of the ToolButton, nothing happens</p>
  
  <p><strong>Findings</strong></p>
  
  <p>It seems the issue is with RowLayout.  If I change it to Row or Rectangle, then the icons resizes as expected.</p>