<?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[Taking screenshot in qt application]]></title><description><![CDATA[<p dir="auto">I want to create a push button for taking a screenshot.<br />
In QT, how can i take a screenshot in my app?</p>
]]></description><link>https://forum.qt.io/topic/126578/taking-screenshot-in-qt-application</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 09:42:18 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126578.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 May 2021 06:28:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Taking screenshot in qt application on Wed, 12 May 2021 19:31:05 GMT]]></title><description><![CDATA[<p dir="auto">You can try <code>QScreen::grabWindow()</code>:<br />
<a href="https://doc.qt.io/qt-6/qscreen.html#grabWindow" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qscreen.html#grabWindow</a></p>
]]></description><link>https://forum.qt.io/post/659439</link><guid isPermaLink="true">https://forum.qt.io/post/659439</guid><dc:creator><![CDATA[Jonas Kvinge]]></dc:creator><pubDate>Wed, 12 May 2021 19:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Taking screenshot in qt application on Wed, 12 May 2021 10:25:33 GMT]]></title><description><![CDATA[<p dir="auto">You could take screenshot from classic C++:<br />
<a href="https://stackoverflow.com/questions/50359643/c-screen-capture-how-to-read-the-bitmap" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/questions/50359643/c-screen-capture-how-to-read-the-bitmap</a></p>
<p dir="auto">And  use (with HBITMAP, don't delete hBitmap Object before you use this):</p>
<pre><code>QImage image = QtWin::fromHBITMAP(hBitmap).toImage(); 
</code></pre>
]]></description><link>https://forum.qt.io/post/659328</link><guid isPermaLink="true">https://forum.qt.io/post/659328</guid><dc:creator><![CDATA[BruceLin]]></dc:creator><pubDate>Wed, 12 May 2021 10:25:33 GMT</pubDate></item><item><title><![CDATA[Reply to Taking screenshot in qt application on Wed, 12 May 2021 06:29:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/firsnur96">@<bdi>firsnur96</bdi></a> Google says: <a href="https://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html</a></p>
]]></description><link>https://forum.qt.io/post/659277</link><guid isPermaLink="true">https://forum.qt.io/post/659277</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 12 May 2021 06:29:48 GMT</pubDate></item></channel></rss>