Page Contents

Topics

Classes

QLColorControl Class

#include <QLayers/qlcolorcontrol.h>

Inherits: QLWidget

Public Functions

QLColorControl(QWidget* parent = nullptr)
void click()
void disable_clicking(bool cond = true)

Protected Functions

bool eventFilter(QObject* object, QEvent* event) override

Signals

void color_changed()

Detailed Description

QLColorControl Example

A QLColorControl is a QLWidget that displays a color to the user and generates a QLColorDialog when clicked, giving the user an interface for changing the color's value.

Member Function Documentation

QLColorControl(QWidget* parent = nullptr)

Constructs a color control.

void click()

Generates a QLColorDialog to give the user an interface for changing the color value.

void color_changed()

Signal

This signal is emitted if the associated color attribute changes.

void disable_clicking(bool cond = true)

Disables or enables the click functionality of the control depending on cond.