Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0
-
None
-
a76f0ca34fde78ac64300b8bf9a75b5e1c1b6b51
Description
Using 5.3.0 on Linux:
import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Layouts 1.1 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") RowLayout { id: row visible: false Label { id: label; text: "hello world" } } Button { text: qsTr("press") anchors.centerIn: parent onClicked: print("w " + row.implicitWidth + " h " + row.implicitHeight + " label width " + label.implicitWidth) } }
When the button is pressed, implicitWidth and implicitHeight returned are null. When the layout is visible they are not null. implicitWidth/Height should be the same whether the layout is visible or not.