<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1492001687736_20518">There are a few tricks you need to be aware of when using Qt and GSTVideoOverlay.</div><div id="yui_3_16_0_ym19_1_1492001687736_22503"><br></div><div id="yui_3_16_0_ym19_1_1492001687736_20497">I don't remember them all but some are:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1492001687736_22568">- autoFillBackground is needed along (maybe) turning off <span id="yui_3_16_0_ym19_1_1492001687736_22584">Qt</span><span id="yui_3_16_0_ym19_1_1492001687736_22585">::</span><span id="yui_3_16_0_ym19_1_1492001687736_22586">WA_OpaquePaintEvent</span><span id="yui_3_16_0_ym19_1_1492001687736_22587"></span> and <span id="yui_3_16_0_ym19_1_1492001687736_22650">Qt</span><span id="yui_3_16_0_ym19_1_1492001687736_22651">::</span><span id="yui_3_16_0_ym19_1_1492001687736_22652">WA_PaintOnScreen.</span><span id="yui_3_16_0_ym19_1_1492001687736_22653"></span></div><div id="yui_3_16_0_ym19_1_1492001687736_20517" dir="ltr">- make sure to expose() the overlay from Qt's paintEvent() and resizeEvent()</div><div dir="ltr" id="yui_3_16_0_ym19_1_1492001687736_24547"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492001687736_22715">Here is the Qt integration I wrote a while back : <a href="https://bitbucket.org/filnet/librepilot/src/d5713c26f2abd33920bf2cf0f816fc285939f29c/ground/gcs/src/libs/gstreamer/videowidget.cpp?at=video_wip&fileviewer=file-view-default" id="yui_3_16_0_ym19_1_1492001687736_22718">https://bitbucket.org/filnet/librepilot/src/d5713c26f2abd33920bf2cf0f816fc285939f29c/ground/gcs/src/libs/gstreamer/videowidget.cpp?at=video_wip&fileviewer=file-view-default</a></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492001687736_24507"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1492001687736_24610">It works on Window and Linux. Also works on OSX with a minor fix.<br></div><div id="yui_3_16_0_ym19_1_1492001687736_20496"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Le Mercredi 12 avril 2017 14h07, Harry McKame <mckameh@wanadoo.fr> a écrit :<br></font></div>  <br><br> <div class="y_msg_container"><div dir="ltr">I use Qt, and setting QWidget::autoFillBackground helps - but only while the video is not playing and its first frame is static and visible, and for about one second once playing starts.<br clear="none"><br clear="none">After one second of play the blank spaces return and become see-through.<div class="yqt2623599513" id="yqtfd83698"><br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">gstreamer-devel mailing list<br clear="none"><a shape="rect" ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br clear="none"><a shape="rect" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br clear="none"></div></div><br><br></div>  </div> </div>  </div></div></body></html>