QgsEncodingSelectionDialog class

A dialog which presents the user with a choice of file encodings.

Constructors, destructors, conversion operators

QgsEncodingSelectionDialog(QWidget* parent = nullptr, const QString& caption = QString(), const QString& encoding = QString(), Qt::WindowFlags flags = Qt::WindowFlags())
Constructor for QgsEncodingSelectionDialog.

Public functions

auto encoding() const -> QString
Returns the encoding selected within the dialog.
void setEncoding(const QString& encoding)
Sets the encoding selected within the dialog.

Function documentation

QgsEncodingSelectionDialog::QgsEncodingSelectionDialog(QWidget* parent = nullptr, const QString& caption = QString(), const QString& encoding = QString(), Qt::WindowFlags flags = Qt::WindowFlags())

Constructor for QgsEncodingSelectionDialog.

If caption is set, it will be used as the caption within the dialog.

The encoding argument can be used to specify the encoding initially selected in the dialog.

QString QgsEncodingSelectionDialog::encoding() const

Returns the encoding selected within the dialog.

void QgsEncodingSelectionDialog::setEncoding(const QString& encoding)

Sets the encoding selected within the dialog.

see encoding()