Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt for MCUs 2.8.2
Description
The application crashes when setting a control to invisible that has a ColumnLayout as a contentItem.
Error message:
Qt for MCUs error: Core:Layout_InvalidValue:129, line: 94, params: 0, 0, 0. See https://doc.qt.io/QtForMCUs/qtul-error-handling.html for more information.
Example code:
(Click on the green rectangle on the right)
import QtQuick import QtQuick.Layouts import QtQuick.Controls Item { Button { id: button anchors.left: parent.left width: 200 height: 200 contentItem: ColumnLayout { Text { text: "Text" color: "red" } } } Rectangle { anchors.right: parent.right width: 200 height: 200 color: "green" MouseArea { anchors.fill: parent onClicked: { button.visible = false } } } }