Page Contents

Topics

Classes

QLGradientDialog Class

#include <QLayers/qlgradientdialog.h>

Inherits: QLDialog

Public Functions

QLGradientDialog(std::vector<LString> stops, QWidget* parent = nullptr)
std::vector<LString> stops() const

Detailed Description

QLGradientDialog Example

A QLGradientDialog is a QLDialog that provides an interface for changing a gradient value.

The dialog contains a QLGradientEditor which lets the user edit the gradient.

Once the desired changes to the gradient have been made, there is a QLButton labeled 'Apply' which wraps up execution of the dialog when clicked.

Member Function Documentation

QLGradientDialog(std::vector<LString> stops, QWidget* parent = nullptr)

Constructs a gradient dialog initialized with stops.

std::vector<LString> stops() const

Returns the stops of the gradient being edited.