Class QDoubleSpinBoxesPopup
ClassList > QDoubleSpinBoxesPopup
Custom widget providing a pop-up interface for managing two spin box elements. More...
#include <widgets.h>
Inherits the following classes: QWidget
Inherited by the following classes: QDoubleSpinBoxesWithColorPickersPopup
Public Attributes
| Type | Name |
|---|---|
| QSpinBox * | m_spinBox1 Pointer to the first spin box widget for setting and retrieving minimum integer values. |
| QSpinBox * | m_spinBox2 Pointer to the second spin box widget for setting and retrieving maximum integer values. |
Public Signals
| Type | Name |
|---|---|
| signal void | maxValueChanged (int value) Signal emitted when the maximum value of the second spin box widget is changes. |
| signal void | minValueChanged (int value) Signal emitted when the minimum value in the first spin box widget is changed. |
Public Functions
| Type | Name |
|---|---|
| QDoubleSpinBoxesPopup (QWidget * parent=nullptr) Custom popup widget containing two spin box widgets. |
|
| int | maxValue () const Retrieves the maximum value set in the second spin box widget. |
| int | minValue () const Retrieves the minimum value set in the first spin box widget. |
| void | setMaxValue (const int value) const Sets the maximum value for the second spin box widget. |
| void | setMinValue (const int value) const Sets the minimum value for the first spin box widget. |
Protected Attributes
| Type | Name |
|---|---|
| QHBoxLayout * | m_backgroundFrameLayout Layout used for the background frame where all components are placed. |
Detailed Description
This widget allows the creation of a pop-up window containing multiple spin box widgets. It is designed for use cases where multiple integer input fields need to be displayed and adjusted.
Public Attributes Documentation
variable m_spinBox1
Pointer to the first spin box widget for setting and retrieving minimum integer values.
variable m_spinBox2
Pointer to the second spin box widget for setting and retrieving maximum integer values.
Public Signals Documentation
signal maxValueChanged
Signal emitted when the maximum value of the second spin box widget is changes.
Parameters:
valueThe new maximum value of the slider after the change.
signal minValueChanged
Signal emitted when the minimum value in the first spin box widget is changed.
Parameters:
valueThe new minimum value set in the spin box.
Public Functions Documentation
function QDoubleSpinBoxesPopup
Custom popup widget containing two spin box widgets.
It is particularly useful for scenarios where a grouped input of integer values is required, enabling users to input several related integer values within a single popup. The layout and number of spin boxes can be customized.
function maxValue
Retrieves the maximum value set in the second spin box widget.
Returns:
The integer value currently set as the maximum in the second spin box.
function minValue
Retrieves the minimum value set in the first spin box widget.
Returns:
The integer value currently set as the minimum in the first spin box.
function setMaxValue
Sets the maximum value for the second spin box widget.
Parameters:
valueThe integer value to be set as the maximum in the second spin box.
function setMinValue
Sets the minimum value for the first spin box widget.
Parameters:
valueThe integer value to be set as the minimum in the first spin box.
Protected Attributes Documentation
variable m_backgroundFrameLayout
Layout used for the background frame where all components are placed.
The documentation for this class was generated from the following file src/widgets.h