<?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[Is there any proper way to save string without using file ?]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
I want to save line edit value when it changes, and i want load  from last value again when application start. I can achieve that creating a file. Is there another way to do this properly ?</p>
<p dir="auto">Thanks for any idea.</p>
]]></description><link>https://forum.qt.io/topic/141813/is-there-any-proper-way-to-save-string-without-using-file</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 05:11:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/141813.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Dec 2022 12:18:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is there any proper way to save string without using file ? on Thu, 29 Dec 2022 12:28:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ozie">@<bdi>ozie</bdi></a><br />
Use <code>QSettings</code> for this as <a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> mentions.  Depending on platform that will save in either a physical file or the Registry under Windows.  Either way you don't have to worry about it, <code>QSettings</code> takes care of it for you.</p>
]]></description><link>https://forum.qt.io/post/741824</link><guid isPermaLink="true">https://forum.qt.io/post/741824</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 29 Dec 2022 12:28:18 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any proper way to save string without using file ? on Thu, 29 Dec 2022 14:37:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ozie">@<bdi>ozie</bdi></a><br />
Yes, you must ensure you distribute/deploy all the right things with <strong>windeployqt</strong>, and you must have something wrong.  Start with whatever the error message says.</p>
]]></description><link>https://forum.qt.io/post/741841</link><guid isPermaLink="true">https://forum.qt.io/post/741841</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 29 Dec 2022 14:37:06 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any proper way to save string without using file ? on Thu, 29 Dec 2022 14:34:45 GMT]]></title><description><![CDATA[<p dir="auto">I faced another problem , if i run application on qt there is no problem but if i create an exe using windeployqt it is not work, Should i add extra things ?</p>
]]></description><link>https://forum.qt.io/post/741840</link><guid isPermaLink="true">https://forum.qt.io/post/741840</guid><dc:creator><![CDATA[ozie]]></dc:creator><pubDate>Thu, 29 Dec 2022 14:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any proper way to save string without using file ? on Thu, 29 Dec 2022 12:31:35 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for replies</p>
]]></description><link>https://forum.qt.io/post/741827</link><guid isPermaLink="true">https://forum.qt.io/post/741827</guid><dc:creator><![CDATA[ozie]]></dc:creator><pubDate>Thu, 29 Dec 2022 12:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any proper way to save string without using file ? on Thu, 29 Dec 2022 12:28:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ozie">@<bdi>ozie</bdi></a><br />
Use <code>QSettings</code> for this as <a class="plugin-mentions-user plugin-mentions-a" href="/user/christian-ehrlicher">@<bdi>Christian-Ehrlicher</bdi></a> mentions.  Depending on platform that will save in either a physical file or the Registry under Windows.  Either way you don't have to worry about it, <code>QSettings</code> takes care of it for you.</p>
]]></description><link>https://forum.qt.io/post/741824</link><guid isPermaLink="true">https://forum.qt.io/post/741824</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 29 Dec 2022 12:28:18 GMT</pubDate></item><item><title><![CDATA[Reply to Is there any proper way to save string without using file ? on Thu, 29 Dec 2022 12:21:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ozie">@<bdi>ozie</bdi></a> said in <a href="/post/741818">Is there any proper way to save string without using file ?</a>:</p>
<blockquote>
<p dir="auto">. Is there another way to do this properly ?</p>
</blockquote>
<p dir="auto">If you want to save it in a file, no.<br />
Maybe <a href="https://doc.qt.io/qt-6/qsettings.html" target="_blank" rel="noopener noreferrer nofollow ugc">QSettings</a> - but even then it's saved in a file on the disk (how should something made persistent otherwise?)</p>
]]></description><link>https://forum.qt.io/post/741820</link><guid isPermaLink="true">https://forum.qt.io/post/741820</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Thu, 29 Dec 2022 12:21:53 GMT</pubDate></item></channel></rss>