It might be a good idea to update your user profile here as it suggests you are usin Qt4 and Qt/Embedded.

Anyways.... QQuickWindow::grabWindow() is your friend.