Hi.
I have several buttons on the form, some of them should be hidden in some conditions. When I hide button placed inside ColumnLayout I get hole like:
instead of expeced:
Here is the code:
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
Rectangle {
width: 256
height: 128
ColumnLayout
{
anchors.margins: 8
anchors.fill: parent
Button
{
Layout.fillWidth: true
}
Button
{
visible: false
Layout.fillWidth: true
}
Button
{
Layout.fillWidth: true
}
}
}
How can I say Layout to ignore invisible items?
PS: Real app, that requires this: my old thread [qt-project.org]
↧