View Full Version : [Qt 4.7, Linux] Embeding external window contents in QWidget

16th June 2011, 20:52
I need to embed contents of another's application window which contains moving pictures coming from video stream that is being decoded (something similar to gmplayer window). The problem is that QWidget is not an independent window (it's part of layout) and it doesn't have own id. I tried to use QX11EmbedContainer as a broker between my application's QWidget object and window I need to embed but with no luck because I cannot embed QX11EmbedContainer in QWidget. I think it may be possible to somehow redirect destination drawing device from within of QX11EmbedContainer so that the destination will become my QWidget. But how can I achieve this when paintEvent() is empty in QX11EmbedContainer?