Class QLineSpinPopup
Popup widget containing a line input and a spin box. More...
#include <widgets.h>
Inherits the following classes: QWidget
Public Attributes
| Type | Name |
|---|---|
| QLineEdit * | m_lineEdit Line edit for entering user specified text. |
| QSpinBox * | m_spinBox Spin box for setting user-defined integer values. |
Public Functions
| Type | Name |
|---|---|
| QLineSpinPopup (QWidget * parent=nullptr) Constructs a popup widget containing a QLineEdit and a QSpinBox. |
|
| void | setText (const QString & fileName) const Sets the text value in the QLineEdit. |
| void | setValue (const int value) const Sets the value in the QSpinBox. |
| QString | text () const Gets the text value from the QLineEdit. |
| int | value () const Gets the value from the QSpinBox. |
Detailed Description
This class implements a popup widget that encapsulates a QLineEdit and a QSpinBox widget. It provides functionality to access and modify their values. The widgets are displayed next to each other in a horizontal layout with proper spacing.
Public Attributes Documentation
variable m_lineEdit
Line edit for entering user specified text.
variable m_spinBox
Spin box for setting user-defined integer values.
Public Functions Documentation
function QLineSpinPopup
Constructs a popup widget containing a QLineEdit and a QSpinBox.
The line edit and spin box are embedded within a horizontal-oriented layout to ensure proper placement. The widget is styled as a frameless popup window.
Parameters:
parentThe parent widget of the popup, can be null.
function setText
Sets the text value in the QLineEdit.
Parameters:
fileNameThe file name to set in the QLineEdit.
function setValue
Sets the value in the QSpinBox.
Parameters:
valueThe value to set in the QSpinBox.
function text
Gets the text value from the QLineEdit.
Returns:
The text entered into the QLineEdit.
function value
Gets the value from the QSpinBox.
Returns:
The current value of the QSpinBox.
The documentation for this class was generated from the following file src/widgets.h