|
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
A QDoubleSpinBox subclass that provides a context menu for configuring range and step. More...
#include <CustomDoubleSpinBox.h>


Public Member Functions | |
| CustomDoubleSpinBox (QWidget *parent=nullptr) | |
| Constructs a CustomDoubleSpinBox. | |
Protected Member Functions | |
| void | contextMenuEvent (QContextMenuEvent *event) override |
| Handles context menu events (right-click) | |
A QDoubleSpinBox subclass that provides a context menu for configuring range and step.
This widget extends QDoubleSpinBox by adding a right-click context menu that allows users to dynamically adjust the minimum value, maximum value, and single step increment at runtime. This is useful for applications where spinbox parameters need to be adjustable without recompiling or accessing separate settings dialogs.
|
explicit |
Constructs a CustomDoubleSpinBox.
| parent | The parent widget (optional) |
|
overrideprotected |
Handles context menu events (right-click)
| event | The context menu event |
Overrides the default context menu to provide configuration options for minimum, maximum, and step values.