<?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[QGraphicsVideoItem mirror ?]]></title><description><![CDATA[<pre><code>QGraphicsScene *scene = new QGraphicsScene;
QGraphicsVideoItem *GVI = new QGraphicsVideoItem;
GVI-&gt;setSize(QSizeF(800,600));
scene-&gt;addItem(GVI);
ui-&gt;graphicsView-&gt;setScene(scene);
QMediaPlayer *player = new QMediaPlayer;
player-&gt;setVideoOutput(GVI);
//GVI.scale(-1,1);    // QT_DEPRECATED_SINCE(5, 0) ?
GVI-&gt;setTransform(QTransform::fromScale(-1, 1));    // QMediaPlayer stopped and can not play anymore
</code></pre>
]]></description><link>https://forum.qt.io/topic/114836/qgraphicsvideoitem-mirror</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 03:40:55 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114836.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 May 2020 03:51:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QGraphicsVideoItem mirror ? on Sat, 16 May 2020 03:45:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bonnie">@<bdi>Bonnie</bdi></a> It seems must use this format:</p>
<pre><code>setTransform(QTransform().translate(x, y).scale(-1, 1).translate(-x, -y), 
</code></pre>
]]></description><link>https://forum.qt.io/post/595060</link><guid isPermaLink="true">https://forum.qt.io/post/595060</guid><dc:creator><![CDATA[sonichy]]></dc:creator><pubDate>Sat, 16 May 2020 03:45:32 GMT</pubDate></item><item><title><![CDATA[Reply to QGraphicsVideoItem mirror ? on Fri, 15 May 2020 19:31:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sonichy">@<bdi>sonichy</bdi></a> Does the sound stop too? When I tried, the mediaplayer does not stop, but the video moved to somewhere invisible.<br />
Try</p>
<pre><code>//the center of video
qreal x = GVI-&gt;boundingRect().width() / 2.0;
qreal y = GVI-&gt;boundingRect().height() / 2.0;
GVI-&gt;setTransform(QTransform().translate(x, y).scale(-1, 1).translate(-x, -y), true);
</code></pre>
]]></description><link>https://forum.qt.io/post/595017</link><guid isPermaLink="true">https://forum.qt.io/post/595017</guid><dc:creator><![CDATA[Bonnie]]></dc:creator><pubDate>Fri, 15 May 2020 19:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to QGraphicsVideoItem mirror ? on Fri, 15 May 2020 18:42:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What version of Qt ?<br />
What OS ?<br />
What video file format ?<br />
What is exactly the question ?</p>
]]></description><link>https://forum.qt.io/post/595007</link><guid isPermaLink="true">https://forum.qt.io/post/595007</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 15 May 2020 18:42:14 GMT</pubDate></item></channel></rss>