PDA

View Full Version : Parenting QWindow...



roomie
13th June 2006, 03:37
Hello!!! I am new to QT and what im trying to do is parent a Qt window that I have created to a win32 process already running. The Qt window I am developing is a plug-in for a 3d application called Maya. I see that you can use the QWinWidget, but unfortunatly I am not using the commercial version....Ive tried to get the QWindow's handle and use SetParent(hParent, hChild); But that doesn't seem to work.

Thanks very much in advance!!!

tony

wysota
16th June 2006, 10:06
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.