diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp index 37015295a05..45eb5b69b4c 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp @@ -515,7 +515,7 @@ void PropertyEditorValue::commitDrop(const QString &path) Utils::FilePath imagePath = Utils::FilePath::fromString(path); Utils::FilePath currFilePath = QmlDesigner::DocumentManager::currentFilePath(); QmlDesigner::VariantProperty srcProp = texture.variantProperty("source"); - srcProp.setValue(imagePath.relativePathFrom(currFilePath).toUrl()); + srcProp.setValue(imagePath.relativePathFrom(currFilePath).toString()); // assign the texture to the property setExpressionWithEmit(texture.id());