QSqlDriverPlugin(3qt)
π QSqlDriverPlugin π (the 3qt manual, bestie)
okay so. welcome to the qsqldriverplugin page, part of the Qt 3qt manual shenanigans. sit down, hydrate, and let's talk about plugins. π«Ά
β¨ NAME β¨
QSqlDriverPlugin β the abstract base class for your own custom QSqlDriver plugins. it's giving "blueprint energy". π
π¦ SYNOPSIS π¦
#include <qsqldriverplugin.h>
πΈ Public Members πΈ
QSqlDriverPlugin ()
~QSqlDriverPlugin ()
virtual QStringList keys () const = 0
virtual QSqlDriver * create ( const QString & key ) = 0
π DESCRIPTION π
so the QSqlDriverPlugin class is literally an abstract base for custom QSqlDriver plugins. that's the whole vibe. β¨
the SQL driver plugin is a simple plugin interface that makes it easy-peasy to create your own SQL driver plugins that can get loaded dynamically by Qt. main character behaviour, honestly. π
writing a SQL plugin? you do it by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the Q_EXPORT_PLUGIN macro. that's the whole recipe, no cap. π₯
if you want example implementations, go look at the SQL plugins that come with Qt (they live in the plugins/src/sqldrivers subdirectory of the source distribution). and read the plugins documentation for more info on plugins, iykyk.
See also Plugins.
π MEMBER FUNCTION DOCUMENTATION π
QSqlDriverPlugin::QSqlDriverPlugin ()
constructs a SQL driver plugin. this one gets invoked automatically by the Q_EXPORT_PLUGIN macro β so like, you don't summon it, it just shows up. β¨
QSqlDriverPlugin::~QSqlDriverPlugin ()
destroys the SQL driver plugin. π
you never have to call this explicitly. Qt destroys a plugin automatically when it's no longer used. periodt. so don't be out here manually deleting things, bestie.
QSqlDriver * QSqlDriverPlugin::create ( const QString & key ) [pure virtual]
creates and returns a QSqlDriver object for the driver key key. the driver key is usually the class name of the required driver. π
See also keys().
QStringList QSqlDriverPlugin::keys () const [pure virtual]
returns the list of drivers (keys) this plugin supports. π
these keys are usually the class names of the custom drivers that are implemented in the plugin.
See also create().
π SEE ALSO π
π COPYRIGHT π
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. see the license file included in the distribution for a complete license statement. π
βοΈ AUTHOR βοΈ
Generated automatically from the source code. (not me, not you, the machine did it. iconic honestly.) π€β¨
π BUGS π
if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you. π«Ά (yes bestie, good bug reports are a love language.)
the definitive Qt documentation is provided in HTML format β it's located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. π
if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qsqldriverplugin.3qt) and the Qt version (3.3.8). like, don't just say "it's broken", give them the receipts. π
and that's the whole page, bestie!! this beauty came from Trolltech AS, dated 2 February 2007, and it's the QSqlDriverPlugin(3qt) page β go forth and write plugins that slay. πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 43: qt3-devel-docs 3.3.8b-102.fc43 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- fedora 44: qt3-devel-docs 3.3.8b-103.fc44 Β· QPL-1.0 OR GPL-2.0-only OR GPL-3.0-only
- Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms