Hi
I'm trying to write a photo program on Nokia N800. There is one example of how to use
N800 camera with GTK at
http://maemo.org/development/documentation/manuals/4-0-x/how_to_use_camera_api/.
I try to show the video inside a QWidget object. But when I call
gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(data), winId())
inside QWidget::paintEvent. The program report X window error. It seems that the winId() is not
correct.
If I call
gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(data), window()->winId())
The video will show on the parent window but no widget itself. I have also try the
effectiveWinId() to get win id. It have same problem as winId().
Does any one know how to get the correct x window id for a QtWidget?
Thanks
Yi