<?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[LocalStorage]]></title><description><![CDATA[<p dir="auto">Where is the localStorage database located? I can't find it anywhere</p>
]]></description><link>https://forum.qt.io/topic/28651/localstorage</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 14:07:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/28651.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Jun 2013 23:56:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LocalStorage on Wed, 03 Jul 2013 00:02:13 GMT]]></title><description><![CDATA[<p dir="auto">Sorry I can't use C++ for this project.</p>
<p dir="auto">on my mac. the localstorage db is located in a hidden folder.<br />
@<br />
/Library<br />
/Application Support<br />
/Qt Project<br />
/QTQmlViewer<br />
/QML<br />
/OfflineStorage<br />
/Databases<br />
@<br />
This seems mental to me.</p>
<p dir="auto">Why can't I just have it in my project folder like<br />
@<br />
/Desktop<br />
/qml_projects<br />
/test_project<br />
@</p>
]]></description><link>https://forum.qt.io/post/184930</link><guid isPermaLink="true">https://forum.qt.io/post/184930</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Wed, 03 Jul 2013 00:02:13 GMT</pubDate></item><item><title><![CDATA[Reply to LocalStorage on Sat, 29 Jun 2013 10:58:17 GMT]]></title><description><![CDATA[<p dir="auto">If you use c++ you will only have a main.cpp like this :</p>
<p dir="auto">@#include &lt;QApplication&gt;</p>
<p dir="auto">#include "qtquick2applicationviewer.h"</p>
<p dir="auto">int main(int argc, char *argv[])<br />
{<br />
QApplication app(argc, argv);</p>
<pre><code>QtQuick2ApplicationViewer viewer;
viewer.engine()-&gt;setOfflineStoragePath(QString("./"));
viewer.setSource(QUrl("main.qml"));
viewer.showFullScreen();

return app.exec&amp;#40;&amp;#41;;
</code></pre>
<p dir="auto">}<br />
@</p>
<p dir="auto">So if you can use C++ i think it's the best idea.</p>
]]></description><link>https://forum.qt.io/post/184617</link><guid isPermaLink="true">https://forum.qt.io/post/184617</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sat, 29 Jun 2013 10:58:17 GMT</pubDate></item><item><title><![CDATA[Reply to LocalStorage on Fri, 28 Jun 2013 18:36:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the help.<br />
I tried<br />
@<br />
viewer.engine()-&gt;setOfflineStoragePath(QString("./"));<br />
@</p>
<p dir="auto">but I'm not using c++<br />
Can't I just have the offlinedatabase in my project folder like</p>
<p dir="auto">desktop\project1\database_1</p>
]]></description><link>https://forum.qt.io/post/184567</link><guid isPermaLink="true">https://forum.qt.io/post/184567</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 28 Jun 2013 18:36:20 GMT</pubDate></item><item><title><![CDATA[Reply to LocalStorage on Fri, 28 Jun 2013 17:19:25 GMT]]></title><description><![CDATA[<p dir="auto">You can specify the location of your database using this command :</p>
<p dir="auto">For exemple to specify the current directory "<em>./</em>" you can use this command :</p>
<p dir="auto">@viewer.engine()-&gt;setOfflineStoragePath(QString("./"));@</p>
<p dir="auto">The name of the database is the md5 hash of the database name.</p>
<p dir="auto">For more details please visit this link :</p>
<p dir="auto"><a href="https://bugreports.qt-project.org/browse/QTBUG-16227" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt-project.org/browse/QTBUG-16227</a></p>
]]></description><link>https://forum.qt.io/post/184566</link><guid isPermaLink="true">https://forum.qt.io/post/184566</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Fri, 28 Jun 2013 17:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to LocalStorage on Wed, 26 Jun 2013 07:50:21 GMT]]></title><description><![CDATA[<p dir="auto">Yes, I do mean the same.  Run this code and you will get the path to your DB (or somewhere close).</p>
]]></description><link>https://forum.qt.io/post/184173</link><guid isPermaLink="true">https://forum.qt.io/post/184173</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Wed, 26 Jun 2013 07:50:21 GMT</pubDate></item><item><title><![CDATA[Reply to LocalStorage on Tue, 25 Jun 2013 17:04:05 GMT]]></title><description><![CDATA[<p dir="auto">Sorry I mean on my local system.</p>
]]></description><link>https://forum.qt.io/post/184118</link><guid isPermaLink="true">https://forum.qt.io/post/184118</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 25 Jun 2013 17:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to LocalStorage on Tue, 25 Jun 2013 06:23:39 GMT]]></title><description><![CDATA[<p dir="auto">Depends on the platform. This should return you the path:<br />
@<br />
QStandardPaths::standardLocations(QStandardPaths::DataLocation);<br />
// or in Qt4:<br />
QDesktopServices::storageLocation(QDesktopServices::DataLocation);<br />
@</p>
]]></description><link>https://forum.qt.io/post/184038</link><guid isPermaLink="true">https://forum.qt.io/post/184038</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Tue, 25 Jun 2013 06:23:39 GMT</pubDate></item></channel></rss>