QSqlDriverCreatorBase Class

The QSqlDriverCreatorBase class is the base class for SQL driver factories. 更多...

头: #include <QSqlDriverCreatorBase>
CMake: 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 () to return an instance of the specific QSqlDriver subclass that you want to provide.

QSqlDatabase::registerSqlDriver () 了解细节。

另请参阅 QSqlDriverCreator .

成员函数文档编制

[virtual noexcept] QSqlDriverCreatorBase:: ~QSqlDriverCreatorBase ()

Destroys the SQL driver creator object.

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

Reimplement this function to returns a new instance of a QSqlDriver 子类。