Results 1 to 2 of 2

Thread: Parenting QWindow...

  1. #1

    Default Parenting QWindow...

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Parenting QWindow...

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.