QtQuick.qtquick-localstorage-example

src="https://assets.ubuntu.com/v1/e28a3927-qml-localstorage-example.png" alt="" />

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.

Hello World

Hello World demonstrates creating a simple SQL table and doing insert and select operations.

Files:

  • localstorage/localstorage/hello.qml
  • localstorage/localstorage/localstorage.qml
  • localstorage/localstorage/main.cpp
  • localstorage/localstorage.pro
  • localstorage/localstorage/localstorage.pro
  • localstorage/localstorage/localstorage.qmlproject
  • localstorage/localstorage/localstorage.qrc