SharedQmlEngine: Port to QQmlComponent::setInitialProperties
The old approach is problematic, because the modern setInitialProperties infrastructure is supposed to check that all required properties are set before the component is completed (even though it currently fails to do so due to QTBUG-131647).
Edited by ivan tkachenko