Important: Please read the Qt Code of Conduct -


  • Where is the localStorage database located? I can't find it anywhere

  • Moderators

    Depends on the platform. This should return you the path:
    // or in Qt4:

  • Sorry I mean on my local system.

  • Moderators

    Yes, I do mean the same. Run this code and you will get the path to your DB (or somewhere close).

  • You can specify the location of your database using this command :

    For exemple to specify the current directory "./" you can use this command :


    The name of the database is the md5 hash of the database name.

    For more details please visit this link :

  • Thanks for the help.
    I tried

    but I'm not using c++
    Can't I just have the offlinedatabase in my project folder like


  • If you use c++ you will only have a main.cpp like this :

    @#include <QApplication>

    #include "qtquick2applicationviewer.h"

    int main(int argc, char *argv[])
    QApplication app(argc, argv);

    QtQuick2ApplicationViewer viewer;
    return app.exec&#40;&#41;;


    So if you can use C++ i think it's the best idea.

  • Sorry I can't use C++ for this project.

    on my mac. the localstorage db is located in a hidden folder.
    /Application Support
    /Qt Project
    This seems mental to me.

    Why can't I just have it in my project folder like

Log in to reply