内容表

上一话题

Qt Quick Layouts - 基本范例

下一话题

Using C++ Models with Qt Quick Views

Qt Quick 范例 - 本地存储

QML 本地存储范例的集合。

../_images/qml-localstorage-example.png

本地存储 is a collection of small QML examples relating to Qt Quick’s local storage functionality.

运行范例

要运行范例从 Qt Creator ,打开 欢迎 模式,然后选择范例从 范例 . For more information, visit Building and Running an Example.

活动追踪器

活动追踪器 允许对行走、徒步旅行、或自行车出行保持追踪。

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.

范例工程 @ code.qt.io