Page Contents

Topics

Classes

QLResizer Class

#include <QLayers/qlresizer.h>

Inherits: QWidget, QLThemeable

Public Functions

QLResizer(LSizeDimension resize_dimension, QWidget* parent = nullptr)
void set_widget(QWidget* widget, int lower_limit, int upper_limit)

Protected Functions

bool eventFilter(QObject* object, QEvent* event) override
void paintEvent(QPaintEvent* event) override

Detailed Description

A QLResizer is a QWidget and a QLThemeable that gives the user a way to resize another widget on the screen.

By click-dragging the resizer, the user can resize the connected widget. To connect a widget to the resizer, use set_widget().

Member Function Documentation

QLResizer(LSizeDimension resize_dimension, QWidget* parent = nullptr)

Constructs a resizer.

void set_widget(QWidget* widget, int lower_limit, int upper_limit)

Sets the widget that the resizer resizes.

The lower_limit and upper_limit parameters are used to restrict the widget's size.