QSqlDriverCreator Class

template <typename T> class QSqlDriverCreator

The QSqlDriverCreator class is a template class that provides a SQL driver factory for a specific driver type. 更多...

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

重实现公共函数

virtual QSqlDriver * createObject () const override

详细描述

QSqlDriverCreator<T> instantiates objects of type T, where T is a QSqlDriver 子类。

QSqlDatabase::registerSqlDriver () 了解细节。

成员函数文档编制

[override virtual] QSqlDriver *QSqlDriverCreator:: createObject () const

重实现: QSqlDriverCreatorBase::createObject() const .