Obviously your root QML element should also not be a Window type, as that is explicitly for creating a stand alone window.

Btw, there is also QQuickWidget.

Cheers,
_