Back to index

salome-gui  6.5.0
QtxIntSpinBox Class Reference

Enhanced version of the Qt's spin box. More...

Inheritance diagram for QtxIntSpinBox:
Inheritance graph

Detailed Description

Enhanced version of the Qt's spin box.

The QtxIntSpinBox class represents the widget for entering the integer values. In addition to the functionality provided by QSpinBox, this class supports "cleared" state - this is the state corresponding to "None" (or empty) entered value.

To set "cleared" state use setCleared() method. To check if the spin box stores "cleared" state, use isCleared() method. For example:

  if (mySpinBox->isCleared()) {
    ... // process "None" state
  else {
    int value = mySpinBox->value();
    ... // process entered value

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