Fixing issue with qquickwidget having no root object