<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FullScreen with QVideoWidget under GNU&#x2F;Linux]]></title><description><![CDATA[<p dir="auto">Hello :)</p>
<p dir="auto">I have problem with full screen mode. When i exit from full screen mode a strange widget show up(see on image).<br />
I even built "this":<a href="http://qt-project.org/doc/qt-5/qtmultimediawidgets-player-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/qtmultimediawidgets-player-example.html</a> example from Qt Docs but same problem.</p>
<p dir="auto">This is how it's looking(QMediaPlayer Example):</p>
<p dir="auto">!<a href="http://www.igreklik.com/slike/images/90244980958546940332.png" target="_blank" rel="noopener noreferrer nofollow ugc">http://www.igreklik.com/slike/images/90244980958546940332.png</a>(QMedia Player Example Problem)!</p>
<p dir="auto">Is there any way to fix this?</p>
<p dir="auto">Regards,<br />
gagiD</p>
]]></description><link>https://forum.qt.io/topic/45884/fullscreen-with-qvideowidget-under-gnu-linux</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 14:13:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/45884.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Sep 2014 16:29:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FullScreen with QVideoWidget under GNU&#x2F;Linux on Wed, 17 Sep 2014 20:05:58 GMT]]></title><description><![CDATA[<p dir="auto">I used this for MainWindow and it's work fine:</p>
<p dir="auto">@<br />
void MainWindow::keyPressEvent(QKeyEvent *event) {<br />
if (event-&gt;key() == Qt::Key_Escape) {<br />
neki-&gt;setParent(this);<br />
neki-&gt;showNormal();<br />
event-&gt;accept();<br />
} else {<br />
MainWindow::keyPressEvent(event);<br />
}<br />
}</p>
<p dir="auto">void MainWindow::fS() {<br />
neki-&gt;setParent(0);<br />
neki-&gt;showFullScreen();<br />
}<br />
@</p>
<p dir="auto">But if i try this on QWidget which is child of QMainWindow it fails.</p>
]]></description><link>https://forum.qt.io/post/244264</link><guid isPermaLink="true">https://forum.qt.io/post/244264</guid><dc:creator><![CDATA[gagiD]]></dc:creator><pubDate>Wed, 17 Sep 2014 20:05:58 GMT</pubDate></item><item><title><![CDATA[Reply to FullScreen with QVideoWidget under GNU&#x2F;Linux on Wed, 17 Sep 2014 19:53:40 GMT]]></title><description><![CDATA[<p dir="auto">I tried it on small example and it does not work as I expected.</p>
<p dir="auto">I use the following code to toggle between states<br />
@<br />
MainWindow::enterFullScreen()<br />
{<br />
// Hide all elements that I don't need in full screen<br />
ui-&gt;toolBar-&gt;hide();<br />
ui-&gt;menuBar-&gt;hide();<br />
ui-&gt;statusBar-&gt;hide();<br />
// ....</p>
<pre><code>m_windowState = windowState();
setWindowState(m_windowState | Qt::WindowFullScreen);
ui-&gt;actionLeaveFullScreen-&gt;setEnabled(true);
ui-&gt;actionEnterFullScreen-&gt;setEnabled(false);
</code></pre>
<p dir="auto">}</p>
<p dir="auto">MainWindow::leaveFullScreen()<br />
{<br />
ui-&gt;toolBar-&gt;show();<br />
ui-&gt;menuBar-&gt;show();<br />
ui-&gt;statusBar-&gt;show();<br />
// ....</p>
<pre><code>setWindowState(m_windowState);

ui-&gt;actionLeaveFullScreen-&gt;setEnabled(false);
ui-&gt;actionEnterFullScreen-&gt;setEnabled(true);
</code></pre>
<p dir="auto">}<br />
@</p>
]]></description><link>https://forum.qt.io/post/244258</link><guid isPermaLink="true">https://forum.qt.io/post/244258</guid><dc:creator><![CDATA[andreyc]]></dc:creator><pubDate>Wed, 17 Sep 2014 19:53:40 GMT</pubDate></item><item><title><![CDATA[Reply to FullScreen with QVideoWidget under GNU&#x2F;Linux on Wed, 17 Sep 2014 19:31:39 GMT]]></title><description><![CDATA[<p dir="auto">"QWidget doc":<a href="http://qt-project.org/doc/qt-5/qwidget.html#setWindowState" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/qwidget.html#setWindowState</a> suggests to use the followoing code to toggle between full-screen and normal mode</p>
<p dir="auto">@<br />
w-&gt;setWindowState(w-&gt;windowState() ^ Qt::WindowFullScreen);<br />
@</p>
]]></description><link>https://forum.qt.io/post/244254</link><guid isPermaLink="true">https://forum.qt.io/post/244254</guid><dc:creator><![CDATA[andreyc]]></dc:creator><pubDate>Wed, 17 Sep 2014 19:31:39 GMT</pubDate></item><item><title><![CDATA[Reply to FullScreen with QVideoWidget under GNU&#x2F;Linux on Wed, 17 Sep 2014 18:32:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Have anybody had this problem?<br />
Does anybody have an idea how to solve this?</p>
<p dir="auto">There is my slot for full screen:</p>
<p dir="auto">@<br />
void Player::showFullScreenVideo() {<br />
if (player-&gt;state() != QMediaPlayer::StoppedState) {<br />
videoWidget-&gt;setParent(0);<br />
videoWidget-&gt;showFullScreen();<br />
}<br />
}<br />
@</p>
<p dir="auto">And event handler for exit from full screen:</p>
<p dir="auto">@<br />
void VideoWidget::keyPressEvent(QKeyEvent *event) {<br />
if (event-&gt;key() == Qt::Key_Escape &amp;&amp; isFullScreen()) {<br />
showNormal();<br />
setParent(myParentWidget);<br />
myParent-&gt;vertical-&gt;insertWidget(0, this);</p>
<pre><code>    event-&gt;accept();
} else {
    VideoWidget::keyPressEvent(event);
}
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.qt.io/post/244252</link><guid isPermaLink="true">https://forum.qt.io/post/244252</guid><dc:creator><![CDATA[gagiD]]></dc:creator><pubDate>Wed, 17 Sep 2014 18:32:50 GMT</pubDate></item></channel></rss>