grawp
14th May 2011, 11:09
I have a strange problem. In constructor of my MainWindow (just ordinary QWidget) I create some QWidgets (like button, label...), and add them to a grid layout.
Then I create "OSD" QWidget subclass.. something like this: http://www.qtcentre.org/wiki/index.php?title=Widget_Overlay. And at the end of constructor of my MainWindow I do this:
osd = new OSD(this);
It works really nice..
And I have other QWidget subclass "Video" containing QX11EmbedContainer displaying some X11 window. When I add it to the layout of my MainWindow, the OSD just won't paint over the area where "Video" is.
What I'm doing wrong? How can I paint over widget containing QX11EmbedContainer? Is there any other way I can embed X11 windows and paint over it?
Then I create "OSD" QWidget subclass.. something like this: http://www.qtcentre.org/wiki/index.php?title=Widget_Overlay. And at the end of constructor of my MainWindow I do this:
osd = new OSD(this);
It works really nice..
And I have other QWidget subclass "Video" containing QX11EmbedContainer displaying some X11 window. When I add it to the layout of my MainWindow, the OSD just won't paint over the area where "Video" is.
What I'm doing wrong? How can I paint over widget containing QX11EmbedContainer? Is there any other way I can embed X11 windows and paint over it?