数据库类

QSql

包含整个Qt SQL 模块中使用的各种标识符

QSqlDatabase

处理与数据库的连接

QSqlDriver

用于访问特定 SQL 数据库的抽象基类

QSqlDriverCreator

为特定驱动程序类型提供 SQL 驱动程序工厂的模板类

QSqlDriverCreatorBase

SQL 驱动程序工厂的基类

QSqlError

SQL 数据库错误信息

QSqlField

操作 SQL 数据库表和视图中的字段

QSqlIndex

操作和描述数据库索引的函数

QSqlQuery

执行和操作 SQL 语句的方法

QSqlQueryModel

SQL 结果集的只读数据模型

QSqlRecord

封装数据库记录

QSqlRelationalTableModel

单个数据库表的可编辑数据模型,支持外键

QSqlResult

从特定 SQL 数据库访问数据的抽象接口

QSqlTableModel

单个数据库表的可编辑数据模型

© 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.