IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSqlDriverCreatorBase Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSqlDriverCreatorBase Class

  • Header: QSqlDriverCreatorBase

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Sql)

    target_link_libraries(mytarget PRIVATE Qt6::Sql)

  • qmake: QT += sql

  • Inherited By: QSqlDriverCreator

  • Group: QSqlDriverCreatorBase is part of Database Classes

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

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.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+