QSqlDriverCreatorBase Class

QSqlDriverCreatorBase 类是 SQL 驱动程序工厂的基类。更多

Header: #include <QSqlDriverCreatorBase>
CMake.QSqlDriverCreatorBase find_package(Qt6 REQUIRED COMPONENTS Sql)
target_link_libraries(mytarget PRIVATE Qt6::Sql)
qmake: QT += sql
继承于

QSqlDriverCreator

公共函数

virtual ~QSqlDriverCreatorBase()
virtual QSqlDriver *createObject() const = 0

详细说明

重实现createObject() 以返回要提供的特定QSqlDriver 子类的实例。

详情请参见QSqlDatabase::registerSqlDriver() 。

另请参阅 QSqlDriverCreator

成员函数文档

[virtual noexcept] QSqlDriverCreatorBase::~QSqlDriverCreatorBase()

销毁 SQL 驱动程序创建者对象。

[pure virtual] QSqlDriver *QSqlDriverCreatorBase::createObject() const

重新实现此函数可返回QSqlDriver 子类的新实例。

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