QSqlDriverCreatorBase Class

The QSqlDriverCreatorBase class is the base class for SQL driver factories. More...

Header: #include <QSqlDriverCreatorBase>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sql)
target_link_libraries(mytarget PRIVATE Qt6::Sql)
qmake: QT += sql
Inherited By:

QSqlDriverCreator

Public Functions

virtual ~QSqlDriverCreatorBase()
virtual QSqlDriver *createObject() const = 0

Detailed Description

Reimplement createObject() to return an instance of the specific QSqlDriver subclass that you want to provide.

See QSqlDatabase::registerSqlDriver() for details.

See also QSqlDriverCreator.

Member Function Documentation

[virtual] 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 subclass.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.