Page Contents

Topics

Classes

Public Functions

QLDialog(const QString& title = "Dialog", QWidget* parent = nullptr)
void set_icon(const QLGraphic& icon)
void setLayout(QLayout* layout)
virtual void update() override

Protected Functions

virtual bool nativeEvent(const QByteArray& eventType, void* message, qintptr* result) override
virtual void paintEvent(QPaintEvent* event) override

Detailed Description

QLDialog Example

A QLDialog is a QDialog and a QLThemeableBox that is used for short-term tasks or brief communications with the user.

Member Function Documentation

QLDialog(const QString& title = "Dialog", QWidget* parent = nullptr)

Constructs a dialog labeled with title.

void set_icon(const QLGraphic& icon)

Sets the dialog's icon.

void setLayout(QLayout* layout)

Sets the layout of the dialog.

void update()

Virtual

Override

Updates the dialog.

This function overrides QLThemeable::update() to update the margins of the dialog layout content.