I have QQuickWindow * _mainWindow and in OS Windows I just write
::ShowWindow(reinterpret_cast(_mainWindow->winId()), SW_MINIMIZE);