QGIS API Documentation 3.99.0-Master (e9821da5c6b)
Loading...
Searching...
No Matches
QgsSlider Class Reference

A custom QSlider with additional refinements. More...

#include <qgsslider.h>

Inheritance diagram for QgsSlider:

Signals

void valueChanged (const QVariant &)

Public Member Functions

 QgsSlider (Qt::Orientation orientation, QWidget *parent=nullptr)
 Constructor for QgsSlider.
 QgsSlider (QWidget *parent=nullptr)
 Constructor for QgsSlider.
QVariant maximum () const
 Returns the slider range's maximum value.
QVariant minimum () const
 Returns the slider range's minimum value.
void setMaximum (const QVariant &max)
 Sets the slider range's maximum value.
void setMinimum (const QVariant &min)
 Sets the slider range's minimum value.
void setSingleStep (const QVariant &step)
 Sets the slider's single step value.
void setValue (const QVariant &value)
QVariant singleStep () const
 Returns the slider's single step value.
QVariant variantValue () const

Protected Member Functions

void paintEvent (QPaintEvent *event) override

Detailed Description

A custom QSlider with additional refinements.

Definition at line 34 of file qgsslider.h.

Constructor & Destructor Documentation

◆ QgsSlider() [1/2]

QgsSlider::QgsSlider ( QWidget * parent = nullptr)

Constructor for QgsSlider.

Definition at line 31 of file qgsslider.cpp.

◆ QgsSlider() [2/2]

QgsSlider::QgsSlider ( Qt::Orientation orientation,
QWidget * parent = nullptr )

Constructor for QgsSlider.

Definition at line 37 of file qgsslider.cpp.

Member Function Documentation

◆ maximum()

QVariant QgsSlider::maximum ( ) const
inline

Returns the slider range's maximum value.

Since
QGIS 4.0

Definition at line 64 of file qgsslider.h.

◆ minimum()

QVariant QgsSlider::minimum ( ) const
inline

Returns the slider range's minimum value.

Since
QGIS 4.0

Definition at line 53 of file qgsslider.h.

◆ paintEvent()

void QgsSlider::paintEvent ( QPaintEvent * event)
overrideprotected

Definition at line 43 of file qgsslider.cpp.

◆ setMaximum()

void QgsSlider::setMaximum ( const QVariant & max)

Sets the slider range's maximum value.

Definition at line 59 of file qgsslider.cpp.

◆ setMinimum()

void QgsSlider::setMinimum ( const QVariant & min)

Sets the slider range's minimum value.

Definition at line 53 of file qgsslider.cpp.

◆ setSingleStep()

void QgsSlider::setSingleStep ( const QVariant & step)

Sets the slider's single step value.

Definition at line 65 of file qgsslider.cpp.

◆ setValue()

void QgsSlider::setValue ( const QVariant & value)

Definition at line 71 of file qgsslider.cpp.

◆ singleStep()

QVariant QgsSlider::singleStep ( ) const
inline

Returns the slider's single step value.

Definition at line 74 of file qgsslider.h.

◆ valueChanged

void QgsSlider::valueChanged ( const QVariant & )
signal

◆ variantValue()

QVariant QgsSlider::variantValue ( ) const

Definition at line 110 of file qgsslider.cpp.


The documentation for this class was generated from the following files: