Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// Copyright (C) 2022 Mimer Information Technology
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4#include "qsql_mimer.h"
5
6#include <qsqldriverplugin.h>
7#include <qstringlist.h>
8
10
11using namespace Qt::StringLiterals;
12
14{
16 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QSqlDriverFactoryInterface" FILE "mimer.json")
17public:
19 QSqlDriver *create(const QString &) override;
20};
21
23
25{
26 if (name == "QMIMER"_L1)
27 return new QMimerSQLDriver;
28 return nullptr;
29}
30
32
33#include "main.moc"
QSqlDriver * create(const QString &) override
Creates and returns a QSqlDriver object for the driver called key.
Definition main.cpp:24
The QSqlDriverPlugin class provides an abstract base for custom QSqlDriver plugins.
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
Definition qsqldriver.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
GLuint name
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()