The QSqlDriverCreatorBase class is the base class for SQL driver factories. 更多...
头: | #include <QSqlDriverCreatorBase> |
qmake: | QT += sql |
继承者: | QSqlDriverCreator |
virtual | ~QSqlDriverCreatorBase () |
virtual QSqlDriver * | createObject () const = 0 |
The QSqlDriverCreatorBase class is the base class for SQL driver factories.
重实现 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 子类。