I think this is not really a Qt issue, but a WinAPI one... Anyway it's very tricky as the Qt window would need a Qt event loop running to do its tasks, effectively blocking the rest of the application. So reparenting the window is not enough, you have to incorporate the event loop into the application too.