[Qt-mobility-feedback] QVideoWidget issues

burkav burkav at yandex.ru
Mon Mar 1 16:19:12 CET 2010


Hi,

I tried to make a semi transparent QSlider on top of QVideoWidget from the QtMoblity Multimedia module. I've faced with the following issues:


1. Creating a vertical layout on QVideoWidget doesn't work. I discovered that it creates another - QGstreamerVideoWidget on top of it, so I need to get a pointer to that widget using:

QWidget *gvw = videoWidget->findChild<QWidget*>();

Then I can place QSlider using layouts. I haven't found any explanation of it in the documentation so probably this needs to be mentioned.


2. I see QSlider painting issues - the widget doesn't update itself properly. It is not possible to make it semitransparent. I discovered that indeed QVideoWidget doesn't use Qt paint system - it paints usign GStreamer calls using the widget's X11 window ID. So that probably causes the update/painting problem.


So if these are really bugs (not a something I did wrong) what would your suggestions about the implementation of semitransparent slider on top of QVideoWidget (it should respond on mouse and key events) ?


I'm using Qt X11 4.6.2, SuSE Linux 11.2 x86_64, QtMobility beta1 package. The rendering seems to work through GStreamer underneath.

Thanks,
Victor



More information about the Qt-mobility-feedback mailing list