QgsOrderByDialog class

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

Constructors, destructors, conversion operators

QgsOrderByDialog(QgsVectorLayer* layer, QWidget* parent = nullptr)
Create a new order by dialog.

Public functions

auto orderBy() -> QgsFeatureRequest::OrderBy
Gets the order by defined in the dialog.
void setOrderBy(const QgsFeatureRequest::OrderBy& orderBy)
Set the order by to manage.

Function documentation

QgsOrderByDialog::QgsOrderByDialog(QgsVectorLayer* layer, QWidget* parent = nullptr)

Create a new order by dialog.

Parameters
layer The vector layer for which the order by should be produced
parent The parent widget, optional

This helps building order by structures.