<?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[Suggestion for capturing screen in full screen mode.]]></title><description><![CDATA[<p dir="auto">We need the suggestion for capturing screen in full screen mode.</p>
<p dir="auto">Following are the requirement we are trying to achieve :</p>
<ol>
<li>
<p dir="auto">Application shall be in full screen mode – with no title bar. As it is full screen mode Windows task bar shall be not directly accessible.</p>
</li>
<li>
<p dir="auto">We need to capture the full screen mode screen as screenshot in one of the directory.<br />
We are using following code but actual screen is not captured. Instead, it captures white screen.</p>
<pre><code>QScreen *screen = QGuiApplication::primaryScreen();
        QPixmap pixMap = screen-&gt;grabWindow(0, 0,0,1920,1080);

qDebug() &lt;&lt; "Writing image to " &lt;&lt; filename;

QImage snapshot = pixMap.toImage();
snapshot.save(“C:\\test, nullptr, 100);
</code></pre>
</li>
</ol>
<p dir="auto">In Maximized mode it is working.</p>
<p dir="auto">Any pointers for the same will be great help.</p>
]]></description><link>https://forum.qt.io/topic/98921/suggestion-for-capturing-screen-in-full-screen-mode</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 10:13:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/98921.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Jan 2019 06:35:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Suggestion for capturing screen in full screen mode. on Fri, 25 Jan 2019 15:20:32 GMT]]></title><description><![CDATA[<p dir="auto"><a href="http://doc.qt.io/qt-5/qscreen.html#grabWindow" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qscreen.html#grabWindow</a><br />
Using a magic number of 0 for the WID is probably not a good idea.  I would use the  QWidget::winId function to get the ID.</p>
<p dir="auto">Is this a QWidget?  You could use grab from that to get  a pixmap as well.</p>
]]></description><link>https://forum.qt.io/post/507190</link><guid isPermaLink="true">https://forum.qt.io/post/507190</guid><dc:creator><![CDATA[fcarney]]></dc:creator><pubDate>Fri, 25 Jan 2019 15:20:32 GMT</pubDate></item></channel></rss>