[Qt-interest] running phonon video from separate process?
Oliver.Knoll at comit.ch
Oliver.Knoll at comit.ch
Mon Dec 22 14:59:36 CET 2008
Bart van Deenen wrote on Monday, December 22, 2008 2:38 PM:
> ...
> The hard thing to me seems to be redirecting the rendering of the
> child process. I'm familiar with native window id's on Linux and
> Windows, and have used those from AWT Java displays. How should I
> proceed with this in Qt?
Off course, if you don't mind using platform-specific code then you could also re-parent widgets:
You get the native window IDs using the Qt API (http://doc.trolltech.com/4.4/qwidget.html#winId). On Windows you would then use the win32 call SetParent(). See how to embed the render window of Google Earth into a Qt app:
http://groups.google.de/group/kml-support-com-api/browse_thread/thread/743601cce38d4a86/afbdc7a8a83441a3
(note that there's a whole bunch of things not properly working with the above code and Google Earth 4.3, but that's related to how GE resizes the render window and has nothing to do with this topic - but it shows the general approach how you could embed another window into a Qt app).
On X11 the class http://doc.trolltech.com/4.4/qx11embedwidget.html could be useful (for X11 applications which support the "X11 embedding" protocol).
Cheers, Oliver
--
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list