Some of my QML code is reporting errors. These are MbOk and other objects inside a VisibleItemModel. The error is
file:///opt/victronenergy/gui/qml/PageSettingsPackageEdit.qml:309:29: Unable to assign undefined value
on an anchors line. The error only occurs when the object is hidden (show: false)
An excerpt:
MbOK { id: confirmButton width: 375 anchors { left: parent.left; bottom: statusMessage.bottom } description: "" value: qsTr ("Proceed") onClicked: confirm () show: ! navigate && actionPending writeAccessLevel: User.AccessInstaller }
The code produces expected results including showing/hiding as expected but with the error