Reply
Thread Tools
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#1
Hello!
Got a problem with gstreamer video.
I have widget which shows gstreamer video (from camera). In some case I create some new widget (just a box with several buttons), which is placed over the widget with gstreamer video (I do mywidget->setVisible(true)). And when I hide my widget (mywidget->setVisible(false)) on gstreamer widget remains black rectangle on the closed widget. Moreover, sometimes when I close (hide) my widget, black rectangle is left of widget with gstreamer video.
 
Posts: 38 | Thanked: 2 times | Joined on Apr 2010 @ Novosibirsk, Russia
#2
Problem is still not solved...
Maybe my explanation was not clear? Ok, I`ll try to explain again )
Application consist of one MainWidget with GridLayout, on which placed a widget with gstreamer video. Video initialize like this:
Code:
gst_x_overlay_expose (GST_X_OVERLAY(data));        gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(data), this->winId());
Also, I create one more widget with parameter 'parent' of MainWidget. But this new widget I do not placed in GridLayot of MainWidget. I placed this Widget on screen using this code:
Code:
menu = new MenuWidget(this);
menu->setGeometry(110,5,500,465);
menu->setVisible(false);
It placed geometrically on top of widget with gstreamer video.

Then, when this widget must be activated, I set it visible. And after working with it, I hide him using
Code:
menu->setVisible(true)
And see on widget with gstreamer video black rectangle, where was the MenuWidget.

To solve this problem I already tried to call update() for widget with video. More, I tried to call:
Code:
gst_x_overlay_expose (GST_X_OVERLAY(data));
        gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(data), this->winId());
And black rectangle still remains...
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 22:10.