Qt Quick 示例 - 本地存储
QML 本地存储示例集。
本地存储是与Qt Quick 的本地存储功能有关的 QML 小范例集。
运行示例
要运行来自 Qt Creator,打开Welcome 模式,选择Examples 中的示例。更多信息,请参阅Qt Creator: Tutorial:构建并运行。
活动跟踪器
通过活动跟踪器,您可以跟踪散步、远足或骑车旅行的情况。
所有数据库事务均在 Database.js 中处理。启动时会检查数据库,如果数据库不存在,则创建数据库。LocalStorage 使用 SQLite,这是一个独立的、无服务器的公域数据库。在每个操作或检索数据的函数开始时,都会处理打开与数据库的连接。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.