Maybe you need to show the window? void QWindow::show()
And you can show your code here, will be easier to find the bug