Class: QgsQueryResultDialog¶
A dialog which allows users to enter and run an SQL query on a DB
connection (an instance of
QgsAbstractDatabaseProviderConnection
).
Note
the ownership of the connection is transferred to the dialog.
See also
Added in version 3.44.
Class Hierarchy¶
Base classes¶
Methods
Returns the |
- class qgis.gui.QgsQueryResultDialog[source]¶
Bases:
QDialog
- __init__(connection: QgsAbstractDatabaseProviderConnection | None = None, parent: QWidget | None = None)
Constructor for QgsQueryResultDialog.
Ownership of the
connection
is transferred to the dialog.- Parameters:
connection (Optional[QgsAbstractDatabaseProviderConnection] = None)
parent (Optional[QWidget] = None)
- resultWidget(self) QgsQueryResultWidget | None [source]¶
Returns the
QgsQueryResultWidget
shown in the dialog.- Return type:
Optional[QgsQueryResultWidget]