The QSqlDriverCreator class is a template class that provides a SQL driver factory for a specific driver type. 更多...
头: | #include <QSqlDriverCreator> |
CMake: |
find_package(Qt6 COMPONENTS Sql REQUIRED)
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.