diff --git a/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml b/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml index 0bef958152c9813a10d44707b5034871ab2560e6..bbb98da0b32535b9c3edbea60831f2889c70bfe0 100644 --- a/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml +++ b/share/qtcreator/qmldesigner/propertyeditor/Qt/LineEdit.qml @@ -57,8 +57,14 @@ QWidget { styleSheet: "QLineEdit { padding-left: 32; }" width: lineEdit.width height: lineEdit.height + + property string valueFromBackend: (backendValue === undefined || backendValue.value === undefined) ? "" : backendValue.value; - text: (backendValue === undefined || backendValue.value === undefined) ? "" : backendValue.value + onValueFromBackendChanged: { + if (backendValue.value === undefined) + return; + text = backendValue.value; + } onEditingFinished: { backendValue.value = text