Class: QgsOrderByDialog

A dialog to build and manage a list of order by clauses.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsOrderByDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

class qgis.gui.QgsOrderByDialog[source]

Bases: QDialog

__init__(layer: QgsVectorLayer | None, parent: QWidget | None = None)

Create a new order by dialog. This helps building order by structures.

Parameters:
  • layer (Optional[QgsVectorLayer]) – The vector layer for which the order by should be produced

  • parent (Optional[QWidget] = None) – The parent widget, optional

orderBy(self) QgsFeatureRequest.OrderBy[source]

Gets the order by defined in the dialog

Return type:

QgsFeatureRequest.OrderBy

setOrderBy(self, orderBy: QgsFeatureRequest.OrderBy)[source]

Set the order by to manage

Parameters:

orderBy (QgsFeatureRequest.OrderBy)