<?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[Set resolution of screenshot image of 3D rendering]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have developed a Qt application which can render 3D files.<br />
One of its features is an option to take screenshots of the current state of the 3D rendering.</p>
<p dir="auto">Here is the code snippet,</p>
<pre><code>// Set capture entity
view-&gt;setCaptureEntity(sceneRoot);
</code></pre>
<pre><code>// Save the rendering by calling this method
void My3DQtViewer::saveImage(QString filename)
{
    m_screenshotfilename = filename;
    m_renderCaptureReply = m_renderCapture-&gt;requestCapture();
    connect(m_renderCaptureReply, SIGNAL(completed()), this, SLOT(saveImageToFile()));
}
</code></pre>
<pre><code>// Save image to file
void My3DQtViewer::saveImageToFile()
{
    m_renderCaptureReply-&gt;saveImage(m_screenshotfilename);
}
</code></pre>
<p dir="auto">The code works fine and I am able to take screenshots perfectly.<br />
Is there any way I can control the resolution/quality of the image being saved?</p>
<p dir="auto">If I can present the user with options to change the resolution of the output image, how will I incorporate this in the code?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/topic/107111/set-resolution-of-screenshot-image-of-3d-rendering</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 06:17:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/107111.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Sep 2019 06:29:54 GMT</pubDate><ttl>60</ttl></channel></rss>