Class: QgsQueryResultMainWindow¶
A main window 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 window.
See also
Added in version 3.44.
Class Hierarchy¶
Base classes¶
Methods
Returns the |
- class qgis.gui.QgsQueryResultMainWindow[source]¶
Bases:
QMainWindow
- __init__(connection: QgsAbstractDatabaseProviderConnection | None = None, identifierName: str | None = '')
Constructor for QgsQueryResultMainWindow.
Ownership of the
connection
is transferred to the window.- Parameters:
connection (Optional[QgsAbstractDatabaseProviderConnection] = None)
identifierName (Optional[str] = '')
- resultWidget(self) QgsQueryResultWidget | None [source]¶
Returns the
QgsQueryResultWidget
shown in the window.- Return type:
Optional[QgsQueryResultWidget]