QSqlDriverCreator Class
template <typename T> class QSqlDriverCreatorQSqlDriverCreator 类是一个模板类,它为特定类型的驱动程序提供了一个 SQL 驱动程序工厂。更多内容...
| 头文件: | #include <QSqlDriverCreator> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Sql) target_link_libraries(mytarget PRIVATE Qt6::Sql) |
| qmake: | QT += sql |
| 继承自: | QSqlDriverCreatorBase |
- 所有成员列表(包括继承的成员)
- QSqlDriverCreator 属于数据库类。
重新实现的公共函数
| virtual QSqlDriver * | createObject() const override |
详细描述
QSqlDriverCreator<T> 用于实例化类型为T 的对象,其中T 是QSqlDriver 的子类。
详情请参阅QSqlDatabase::registerSqlDriver()。
成员函数文档
[override virtual] QSqlDriver *QSqlDriverCreator::createObject() const
重新实现了:QSqlDriverCreatorBase::createObject() const。
© 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.