Qt Quick Examples - Local Storage | Qt Quick 5.9

Qt 5.9 | Qt Quick | Qt Quick Examples - Local Storage

Qt 5.9.3 Reference Documentation

# Qt Quick Examples - Local Storage

Local Storage is a collection of small QML examples relating to Qt Quick's local storage functionality.

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

## Activity Tracker

Activity tracker allows you to keep track of walks, hikes, or bike trips.

All database transactions are handled in Database.js. The database is checked at startup, and created if it does not exist. LocalStorage uses SQLite, which is a self-contained, serverless, public-domain database. Opening a connection to the database is handled at the beginning of each function that manipulates or retrieves data.

Files:

- localstorage/localstorage/Database.js
- localstorage/localstorage/Header.qml
- localstorage/localstorage/MyButton.qml
- localstorage/localstorage/MyDelegate.qml
- localstorage/localstorage/MyModel.qml
- localstorage/localstorage/localstorage.qml
- localstorage/localstorage/main.cpp
- localstorage/localstorage.pro
- localstorage/localstorage/localstorage.pro
- localstorage/localstorage/localstorage.qrc