question

Kevin Windrem avatar image
Kevin Windrem asked

bug in QML code using VisibleItemModel

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

Venus OS
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers

Related Resources