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.

Added in version 3.44.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsQueryResultDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Methods

resultWidget

Returns the QgsQueryResultWidget shown in the dialog.

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

Returns the QgsQueryResultWidget shown in the dialog.

Return type:

Optional[QgsQueryResultWidget]