En esta página

QSqlDriverCreator Class

template <typename T> class QSqlDriverCreator

La clase `QSqlDriverCreator` es una clase de plantilla que proporciona una fábrica de controladores SQL para un tipo de controlador específico. Más información...

Encabezado: #include <QSqlDriverCreator>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sql)
target_link_libraries(mytarget PRIVATE Qt6::Sql)
qmake: QT += sql
Heredado de: QSqlDriverCreatorBase

Funciones públicas reimplementadas

virtual QSqlDriver *createObject() const override

Descripción detallada

QSqlDriverCreator<T> crea instancias de objetos de tipo T, donde T es una subclase de QSqlDriver.

Consulte QSqlDatabase::registerSqlDriver() para obtener más detalles.

Documentación de las funciones miembro

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

Reimplementa: ` QSqlDriverCreatorBase::createObject()` const.

© 2026 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.