QSqlDriverCreatorBase Class
QSqlDriverCreatorBase 类是 SQL 驱动程序工厂的基类。更多内容...
| 头文件: | #include <QSqlDriverCreatorBase> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sql) target_link_libraries(mytarget PRIVATE Qt6::Sql) |
| qmake: | QT += sql |
| 由以下接口继承: |
- 所有成员列表(包括继承的成员)
- QSqlDriverCreatorBase 属于数据库类。
公共函数
| virtual | ~QSqlDriverCreatorBase() |
| virtual QSqlDriver * | createObject() const = 0 |
另请参阅 QSqlDriverCreator 。
成员函数文档
[virtual noexcept] QSqlDriverCreatorBase::~QSqlDriverCreatorBase()
销毁 SQL 驱动程序创建器对象。
[pure virtual] QSqlDriver *QSqlDriverCreatorBase::createObject() const
重写此函数,使其返回QSqlDriver 子类的全新实例。
© 2026 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.