The QSqlDriverCreatorBase class is the base class for SQL driver factories. 更多...
头: | #include <QSqlDriverCreatorBase> |
CMake: |
find_package(Qt6 COMPONENTS Sql REQUIRED)
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 .
[虚拟]
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 子类。