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.

Added in version 3.44.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsQueryResultMainWindow

Base classes

QMainWindow

QWidget

QObject

QPaintDevice

Methods

resultWidget

Returns the QgsQueryResultWidget shown in the window.

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:
resultWidget(self) QgsQueryResultWidget | None[source]

Returns the QgsQueryResultWidget shown in the window.

Return type:

Optional[QgsQueryResultWidget]