Obsolete Members for QSpinBox | Qt Widgets 5.14.2

Qt 5.14 | Qt Widgets | C++ Classes | QSpinBox

Qt 5.14.2 Reference Documentation

# Obsolete Members for QSpinBox

The following members of class QSpinBox are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

## Signals

`(obsolete)` void | valueChanged(const QString &text)

## Member Function Documentation

### `[signal]` void QSpinBox::valueChanged(const QString &text)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

This is an overloaded function.

The new value is passed in text with prefix() and suffix().

Note: Signal valueChanged is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

      connect(spinBox, QOverload<const QString &>::of(&QSpinBox::valueChanged),
          [=](const QString &text){ /* ... */ });