QSqlDriverCreatorBase Class

QSqlDriverCreatorBase クラスは、SQL ドライバ・ファクトリの基本クラスです。詳細...

ヘッダー #include <QSqlDriverCreatorBase>
CMake: find_package(Qt6 REQUIRED COMPONENTS Sql)
target_link_libraries(mytarget PRIVATE Qt6::Sql)
qmake: QT += sql
継承元:

QSqlDriverCreator

パブリック関数

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

詳細説明

createObject() を再定義して、提供したい特定のQSqlDriver サブクラスのインスタンスを返します。

詳細はQSqlDatabase::registerSqlDriver() を参照してください。

QSqlDriverCreatorも参照してください

メンバ関数のドキュメント

[virtual noexcept] QSqlDriverCreatorBase::~QSqlDriverCreatorBase()

SQL ドライバ作成オブジェクトを破棄します。

[pure virtual] QSqlDriver *QSqlDriverCreatorBase::createObject() const

この関数を再実装して、QSqlDriver サブクラスの新しいインスタンスを返します。

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