Nesta página

QSqlDriverCreator Class

template <typename T> class QSqlDriverCreator

A classe QSqlDriverCreator é uma classe modelo que fornece uma fábrica de drivers SQL para um tipo específico de driver. Mais...

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

Funções públicas reimplementadas

virtual QSqlDriver *createObject() const override

Descrição detalhada

QSqlDriverCreator<T> instancia objetos do tipo T, em que T é uma subclasse de QSqlDriver.

Consulte QSqlDatabase::registerSqlDriver() para obter detalhes.

Documentação das funções-membro

[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.