title: QML In a GridLayout, how to constraint a cell with an invisible to have a 0 height?
body: <p>I've got a GridLayout laid out this way:</p>
  <p>AAAA<br/>
  C D<br/>
  C E<br/>
  C E<br/>
  C E<br/>
  C F<br/>
  C G<br/>
  HHHH</p>
  <p>E has <code>Layout.fillHeight: true</code>, F has a preferredheight,<br/>
  D and G can be hidden and have a preferredHeight set based on their content:</p>
  <pre><code>Item {
      Layout.row: 2
      Layout.column: 2            
      Layout.columnSpan: 1
      Layout.rowSpan: 1
  
      id : D
      visible : false
      Layout.preferredWidth : layConfig.implicitWidth + 10
      Layout.preferredHeight : layConfig.implicitHeight + 10
      anchors.margins : 20
      Grid {
          id : layConfig
          ...
          }
  </code></pre>
  <p>When D and G are <strong>visible</strong> they are sized correctly.
  But when they are <strong>invisible</strong> they are replaced by <strong>an empty space</strong> instead of a 0 height cell.</p>
  <p>AAAA<br/>
  C <br/>
  C <br/>
  C E<br/>
  C E<br/>
  C F<br/>
  C G<br/>
  HHHH</p>
  <p>While this expected:</p>
  <p>AAAA<br/>
  C E<br/>
  C E<br/>
  C E<br/>
  C E<br/>
  C F<br/>
  C G<br/>
  HHHH</p>
  <p>For now, I just added an extra ColumnLayout in the GridLayout for managing the elements D-&gt;G.
  In a shortterm it is working but on a longer term it will complicate the whole code.</p>
  <p>How can I force, with a pure GridLayout, a 0 height in the case a cell is hidden?</p>