For an example: Text { text: fooObject?.title }
When the fooObject is null, will got a qml error "Unable to assign [undefined] to QString". I don't want the error, so, how to skip write value for "text" property when fooObject is null? Text { text: fooObject?.title ?? text } This is a workaround, but it is a magic, maybe will got a cycle binding? Text { text: fooObject?.title ?? bypass objectName: { if (fooObject) return fooObject.name bypass } } This syntax will more easily understand.
-- Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development