Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
CustomDoubleSpinBox Class Reference

A QDoubleSpinBox subclass that provides a context menu for configuring range and step. More...

#include <CustomDoubleSpinBox.h>

Inheritance diagram for CustomDoubleSpinBox:
Inheritance graph
[legend]
Collaboration diagram for CustomDoubleSpinBox:
Collaboration graph
[legend]

Public Member Functions

 CustomDoubleSpinBox (QWidget *parent=nullptr)
 Constructs a CustomDoubleSpinBox.
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *event) override
 Handles context menu events (right-click)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CustomDoubleSpinBox()

CustomDoubleSpinBox::CustomDoubleSpinBox ( QWidget *  parent = nullptr)
explicit

Constructs a CustomDoubleSpinBox.

Parameters
parentThe parent widget (optional)

Member Function Documentation

◆ contextMenuEvent()

void CustomDoubleSpinBox::contextMenuEvent ( QContextMenuEvent *  event)
overrideprotected

Handles context menu events (right-click)

Parameters
eventThe context menu event

Overrides the default context menu to provide configuration options for minimum, maximum, and step values.


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