QtIndustrialWidgets 2.3.0
Modern, High-Performance Industrial Instruments & SCADA Widgets for Qt
Loading...
Searching...
No Matches
QtIndustrialWidgets::IndustrialKnob Class Reference

Precision industrial rotary control potentiometer and selector knob. More...

#include <IndustrialKnob.h>

Inheritance diagram for QtIndustrialWidgets::IndustrialKnob:

Detailed Description

Precision industrial rotary control potentiometer and selector knob.

IndustrialKnob provides an interactive rotary control with brushed metal texture, notched grips, continuous or discrete indexed stepping, mouse dragging, mouse wheel, and keyboard arrow controls.

The background ticks and scale are cached in a high-DPI pixmap, so a rotation redraws only the moving parts.

Fonts: the texts use the family, weight and style of the widget font (setFont(), style sheets); their sizes come from the widget geometry and do not follow the size of the widget font, because the layout does not yet make room for larger text.

auto *knob = new IndustrialKnob(parent);
knob->setRange(0.0, 100.0);
knob->setValue(50.0);
knob->setStep(1.0);
knob->setUnit("%");
Precision industrial rotary control potentiometer and selector knob.
Definition IndustrialKnob.h:40

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