<?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[Retrieving REG_SZ value from Windows Registry]]></title><description><![CDATA[<p dir="auto">Given a registry value "SMTP Server" stored at:</p>
<p dir="auto">"HKCU\Software\Microsoft\Internet Account Manager\Accounts\00000001"</p>
<p dir="auto">is this correct use of QSettings to retrieve it?</p>
<pre><code>QSettings sysSettings(QSettings::UserScope, "Microsoft");
sysSettings.beginGroup("Internet Account Manager/Accounts/00000001");
m_strSMTP = sysSettings.value("SMTP Server", "").toString();
sysSettings.endGroup();
</code></pre>
<p dir="auto">Thanks<br />
D.</p>
]]></description><link>https://forum.qt.io/topic/141083/retrieving-reg_sz-value-from-windows-registry</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 17:26:02 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/141083.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Nov 2022 11:49:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Retrieving REG_SZ value from Windows Registry on Mon, 28 Nov 2022 23:38:17 GMT]]></title><description><![CDATA[<p dir="auto">Great, thank you</p>
]]></description><link>https://forum.qt.io/post/738073</link><guid isPermaLink="true">https://forum.qt.io/post/738073</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Mon, 28 Nov 2022 23:38:17 GMT</pubDate></item><item><title><![CDATA[Reply to Retrieving REG_SZ value from Windows Registry on Mon, 28 Nov 2022 23:27:02 GMT]]></title><description><![CDATA[<p dir="auto">I would have thought more like this:</p>
<pre><code>QSettings settings("HKEY_CURRENT_USER\\Software\\Microsoft",
                   QSettings::NativeFormat);
sysSettings.beginGroup("Internet Account Manager/Accounts/00000001");
m_strSMTP = sysSettings.value("SMTP Server", "").toString();
sysSettings.endGroup();
</code></pre>
]]></description><link>https://forum.qt.io/post/738072</link><guid isPermaLink="true">https://forum.qt.io/post/738072</guid><dc:creator><![CDATA[ChrisW67]]></dc:creator><pubDate>Mon, 28 Nov 2022 23:27:02 GMT</pubDate></item></channel></rss>