The QgsDatabaseSchemaComboBox class is a combo box which displays the list of schemas for a specific database connection.
More...
#include <qgsdatabaseschemacombobox.h>
|
void | refreshSchemas () |
| Refreshes the list of available schemas. More...
|
|
void | setConnectionName (const QString &connection, const QString &provider=QString()) |
| Sets the database connection name from which to retrieve the available schemas. More...
|
|
void | setSchema (const QString &schema) |
| Sets the current schema selected in the combo box. More...
|
|
|
void | schemaChanged (const QString &schema) |
| Emitted whenever the currently selected schema changes. More...
|
|
The QgsDatabaseSchemaComboBox class is a combo box which displays the list of schemas for a specific database connection.
- Warning
- The provider must support the connection API methods in its QgsProviderMetadata implementation in order for the combobox to work correctly.
- Since
- QGIS 3.14
Definition at line 51 of file qgsdatabaseschemacombobox.h.
◆ QgsDatabaseSchemaComboBox() [1/2]
QgsDatabaseSchemaComboBox::QgsDatabaseSchemaComboBox |
( |
const QString & |
provider, |
|
|
const QString & |
connection, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ QgsDatabaseSchemaComboBox() [2/2]
◆ allowEmptySchema()
bool QgsDatabaseSchemaComboBox::allowEmptySchema |
( |
| ) |
const |
◆ comboBox()
QComboBox * QgsDatabaseSchemaComboBox::comboBox |
( |
| ) |
|
|
inline |
◆ currentSchema()
QString QgsDatabaseSchemaComboBox::currentSchema |
( |
| ) |
const |
◆ refreshSchemas
void QgsDatabaseSchemaComboBox::refreshSchemas |
( |
| ) |
|
|
slot |
◆ schemaChanged
void QgsDatabaseSchemaComboBox::schemaChanged |
( |
const QString & |
schema | ) |
|
|
signal |
Emitted whenever the currently selected schema changes.
◆ setAllowEmptySchema()
void QgsDatabaseSchemaComboBox::setAllowEmptySchema |
( |
bool |
allowEmpty | ) |
|
◆ setConnectionName
void QgsDatabaseSchemaComboBox::setConnectionName |
( |
const QString & |
connection, |
|
|
const QString & |
provider = QString() |
|
) |
| |
|
slot |
Sets the database connection name from which to retrieve the available schemas.
Optionally the provider can be reset too.
Definition at line 117 of file qgsdatabaseschemacombobox.cpp.
◆ setSchema
void QgsDatabaseSchemaComboBox::setSchema |
( |
const QString & |
schema | ) |
|
|
slot |
The documentation for this class was generated from the following files: