<?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[What may be the error in following syntax?]]></title><description><![CDATA[<p dir="auto">@QSettings* s = new QSettings(QDir::currentPath() + "/my_file.ini" , QSettings::IniFormat);@</p>
<p dir="auto">Here if .ini file does not exist it should create new file but it is not creating.</p>
]]></description><link>https://forum.qt.io/topic/11877/what-may-be-the-error-in-following-syntax</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 20:06:17 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/11877.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 03 Dec 2011 11:12:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What may be the error in following syntax? on Fri, 09 Dec 2011 17:14:12 GMT]]></title><description><![CDATA[<p dir="auto">Code is ok. As koahnig told, it will create the ini file, only when you set a value.<br />
If no values are there, you wouldn't need an empty file right ?</p>
]]></description><link>https://forum.qt.io/post/119886</link><guid isPermaLink="true">https://forum.qt.io/post/119886</guid><dc:creator><![CDATA[Rahul Das]]></dc:creator><pubDate>Fri, 09 Dec 2011 17:14:12 GMT</pubDate></item><item><title><![CDATA[Reply to What may be the error in following syntax? on Fri, 09 Dec 2011 14:33:23 GMT]]></title><description><![CDATA[<p dir="auto">Do you have write access to the QDir::currentPath() directory ?</p>
]]></description><link>https://forum.qt.io/post/119866</link><guid isPermaLink="true">https://forum.qt.io/post/119866</guid><dc:creator><![CDATA[rcari]]></dc:creator><pubDate>Fri, 09 Dec 2011 14:33:23 GMT</pubDate></item><item><title><![CDATA[Reply to What may be the error in following syntax? on Sat, 03 Dec 2011 12:34:16 GMT]]></title><description><![CDATA[<p dir="auto">In the documentation you find:<br />
@Constructs a QSettings object for accessing the settings stored in the file called fileName, with parent parent. If the file doesn't already exist, it is created.<br />
@<br />
However, that is apparently not completely correct. I have just created an object with a fixed path and iniformat. I have not done anythingelse with that object. It was not created.<br />
When I set a value as you have as you have indicated, the ini-file will be created.</p>
<p dir="auto">So QSettings will only create a file, when information is available to be stored.</p>
]]></description><link>https://forum.qt.io/post/119059</link><guid isPermaLink="true">https://forum.qt.io/post/119059</guid><dc:creator><![CDATA[koahnig]]></dc:creator><pubDate>Sat, 03 Dec 2011 12:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to What may be the error in following syntax? on Sat, 03 Dec 2011 12:02:48 GMT]]></title><description><![CDATA[<p dir="auto">one thing i notice that if we will setvalue for the first time then only file will be created if it doesn't exist.</p>
]]></description><link>https://forum.qt.io/post/119058</link><guid isPermaLink="true">https://forum.qt.io/post/119058</guid><dc:creator><![CDATA[pratik041]]></dc:creator><pubDate>Sat, 03 Dec 2011 12:02:48 GMT</pubDate></item><item><title><![CDATA[Reply to What may be the error in following syntax? on Sat, 03 Dec 2011 11:38:28 GMT]]></title><description><![CDATA[<p dir="auto">Uhm..could it be a problem with the path separator? Have you tried to debug/print the real file name that is created?<br />
If that is correct, I will try to create an empty file in such directory to see if there is also a permission problem.</p>
]]></description><link>https://forum.qt.io/post/119053</link><guid isPermaLink="true">https://forum.qt.io/post/119053</guid><dc:creator><![CDATA[fluca1978]]></dc:creator><pubDate>Sat, 03 Dec 2011 11:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to What may be the error in following syntax? on Sat, 03 Dec 2011 11:15:50 GMT]]></title><description><![CDATA[<p dir="auto">i have checked the path is correct</p>
]]></description><link>https://forum.qt.io/post/119051</link><guid isPermaLink="true">https://forum.qt.io/post/119051</guid><dc:creator><![CDATA[pratik041]]></dc:creator><pubDate>Sat, 03 Dec 2011 11:15:50 GMT</pubDate></item><item><title><![CDATA[Reply to What may be the error in following syntax? on Sat, 03 Dec 2011 11:15:03 GMT]]></title><description><![CDATA[<p dir="auto">Check the path you're trying to create the file on.</p>
]]></description><link>https://forum.qt.io/post/119049</link><guid isPermaLink="true">https://forum.qt.io/post/119049</guid><dc:creator><![CDATA[veeeee_d]]></dc:creator><pubDate>Sat, 03 Dec 2011 11:15:03 GMT</pubDate></item></channel></rss>