Skip to content

Class QLineSpinPopup

ClassList > 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.

QLineEdit* QLineSpinPopup::m_lineEdit;


variable m_spinBox

Spin box for setting user-defined integer values.

QSpinBox* QLineSpinPopup::m_spinBox;


Public Functions Documentation

function QLineSpinPopup

Constructs a popup widget containing a QLineEdit and a QSpinBox.

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

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:

  • parent The parent widget of the popup, can be null.

function setText

Sets the text value in the QLineEdit.

inline void QLineSpinPopup::setText (
    const QString & fileName
) const

Parameters:

  • fileName The file name to set in the QLineEdit.

function setValue

Sets the value in the QSpinBox.

inline void QLineSpinPopup::setValue (
    const int value
) const

Parameters:

  • value The value to set in the QSpinBox.

function text

Gets the text value from the QLineEdit.

inline QString QLineSpinPopup::text () const

Returns:

The text entered into the QLineEdit.


function value

Gets the value from the QSpinBox.

inline int QLineSpinPopup::value () const

Returns:

The current value of the QSpinBox.



The documentation for this class was generated from the following file src/widgets.h