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.
List of all members, including inherited members
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
connectionis transferred to the window.- Parameters:
connection (Optional[QgsAbstractDatabaseProviderConnection] = None)
identifierName (Optional[str] = '')
- resultWidget(self) QgsQueryResultWidget | None[source]¶
Returns the
QgsQueryResultWidgetshown in the window.- Return type:
Optional[QgsQueryResultWidget]