<class name="QSpinBox" doc="/**
&lt;p&gt;The &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; class provides a spin box widget.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; is designed to handle integers and discrete sets of values (e.g&amp;#x2e;, month names); use &lt;a href=&quot;QDoubleSpinBox.html&quot;&gt;&lt;tt&gt;QDoubleSpinBox&lt;/tt&gt;&lt;/a&gt; for floating point values.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; allows the user to choose a value by clicking the up/down buttons or pressing up/down on the keyboard to increase/decrease the value currently displayed. The user can also type the value in manually. The spin box supports integer values but can be extended to use different strings with &lt;a href=&quot;QSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSpinBox.html#textFromValue(int)&quot;&gt;&lt;tt&gt;textFromValue&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSpinBox.html#valueFromText(java.lang.String)&quot;&gt;&lt;tt&gt;valueFromText&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Every time the value changes &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; emits the &lt;a href=&quot;QSpinBox.html#valueChanged(int)&quot;&gt;&lt;tt&gt;valueChanged&lt;/tt&gt;&lt;/a&gt; signals. The current value can be fetched with &lt;a href=&quot;QSpinBox.html#value()&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt; and set with &lt;a href=&quot;QSpinBox.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Clicking the up/down buttons or using the keyboard accelerator's up and down arrows will increase or decrease the current value in steps of size &lt;a href=&quot;QSpinBox.html#singleStep()&quot;&gt;&lt;tt&gt;singleStep&lt;/tt&gt;&lt;/a&gt;. If you want to change this behaviour you can reimplement the virtual function &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;. The minimum and maximum value and the step size can be set using one of the constructors, and can be changed later with &lt;a href=&quot;QSpinBox.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSpinBox.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSpinBox.html#setSingleStep(int)&quot;&gt;&lt;tt&gt;setSingleStep&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Most spin boxes are directional, but &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; can also operate as a circular spin box, i.e&amp;#x2e; if the range is 0-99 and the current value is 99, clicking &amp;quot;up&amp;quot; will give 0 if &lt;a href=&quot;QAbstractSpinBox.html#wrapping()&quot;&gt;&lt;tt&gt;wrapping&lt;/tt&gt;&lt;/a&gt; is set to true. Use &lt;a href=&quot;QAbstractSpinBox.html#setWrapping(boolean)&quot;&gt;&lt;tt&gt;setWrapping&lt;/tt&gt;&lt;/a&gt; if you want circular behavior.&lt;/p&gt;
&lt;p&gt;The displayed value can be prepended and appended with arbitrary strings indicating, for example, currency or the unit of measurement. See &lt;a href=&quot;QSpinBox.html#setPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setPrefix&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSpinBox.html#setSuffix(java.lang.String)&quot;&gt;&lt;tt&gt;setSuffix&lt;/tt&gt;&lt;/a&gt;. The text in the spin box is retrieved with &lt;a href=&quot;QAbstractSpinBox.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; (which includes any &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt;), or with &lt;a href=&quot;QSpinBox.html#cleanText()&quot;&gt;&lt;tt&gt;cleanText&lt;/tt&gt;&lt;/a&gt; (which has no &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt;, no &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt; and no leading or trailing whitespace).&lt;/p&gt;
&lt;p&gt;It is often desirable to give the user a special (often default) choice in addition to the range of numeric values. See &lt;a href=&quot;QAbstractSpinBox.html#setSpecialValueText(java.lang.String)&quot;&gt;&lt;tt&gt;setSpecialValueText&lt;/tt&gt;&lt;/a&gt; for how to do this with &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;table width=&quot;100%&quot; align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/windowsxp-spinbox.png&quot; alt=&quot;Screenshot of a Windows XP spin box&quot; /&gt;&lt;/td&gt;&lt;td&gt;A spin box shown in the &lt;a href=&quot;%2E%2E/gallery-windowsxp.html&quot;&gt;Windows XP widget style&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;even&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/plastique-spinbox.png&quot; alt=&quot;Screenshot of a Plastique spin box&quot; /&gt;&lt;/td&gt;&lt;td&gt;A spin box shown in the &lt;a href=&quot;%2E%2E/gallery-plastique.html&quot;&gt;Plastique widget style&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/macintosh-spinbox.png&quot; alt=&quot;Screenshot of a Macintosh spin box&quot; /&gt;&lt;/td&gt;&lt;td&gt;A spin box shown in the &lt;a href=&quot;%2E%2E/gallery-macintosh.html&quot;&gt;Macintosh widget style&lt;/tt&gt;&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;a name=&quot;subclassing-qspinbox&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Subclassing QSpinBox&lt;/h3&gt;
&lt;p&gt;If using &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; don't provide enough control, you subclass &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; and reimplement &lt;a href=&quot;QSpinBox.html#valueFromText(java.lang.String)&quot;&gt;&lt;tt&gt;valueFromText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSpinBox.html#textFromValue(int)&quot;&gt;&lt;tt&gt;textFromValue&lt;/tt&gt;&lt;/a&gt;. For example, here's the code for a custom spin box that allows the user to enter icon sizes (e.g&amp;#x2e;, &amp;quot;32 x 32&amp;quot;):&lt;/p&gt;
&lt;pre&gt;    int IconSizeSpinBox::valueFromText(const QString &amp;amp;text) const
    {
        QRegExp regExp(tr(&amp;quot;(\\d+)(\\s*[xx]\\s*\\d+)?&amp;quot;));

        if (regExp.exactMatch(text)) {
            return regExp.cap(1).toInt();
        } else {
            return 0;
        }
    }

    QString IconSizeSpinBox::textFromValue(int value) const
    {
        return tr(&amp;quot;%1 x %1&amp;quot;).arg(value);
    }&lt;/pre&gt;
&lt;p&gt;See the Icons&lt;/tt&gt; example for the full source code.&lt;/p&gt;

@see &lt;a href=&quot;QDoubleSpinBox.html&quot;&gt;&lt;tt&gt;QDoubleSpinBox&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDateTimeEdit.html&quot;&gt;&lt;tt&gt;QDateTimeEdit&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSlider.html&quot;&gt;&lt;tt&gt;QSlider&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-spinboxes.html&quot;&gt;Spin Boxes Example&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void editingFinished()" doc="/**
&lt;p&gt;This signal is emitted editing is finished. This happens when the spinbox loses focus and when enter is pressed.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signature:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void valueStringChanged(java.lang.String arg__1)" doc="/**
&lt;p&gt;The new value is passed literally in &lt;tt&gt;arg__1&lt;/tt&gt; with no &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(java.lang.String arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void valueChanged(int arg__1)" doc="/**
&lt;p&gt;This signal is emitted whenever the spin box's value is changed. The new value's integer value is passed in &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(int arg__1)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QSpinBox(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs a spin box with 0 as minimum value and 99 as maximum value, a step value of 1. The value is initially set to 0. It is parented to &lt;tt&gt;parent&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setSingleStep(int)&quot;&gt;&lt;tt&gt;setSingleStep&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QSpinBox()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final java.lang.String cleanText()" doc="/**
&lt;p&gt;Returns the text of the spin box excluding any prefix, suffix, or leading or trailing whitespace..&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#text()&quot;&gt;text&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSpinBox::prefix&lt;/tt&gt;
@see &lt;tt&gt;QSpinBox::suffix&lt;/tt&gt; */"/>
    <method name="public final int maximum()" doc="/**
&lt;p&gt;Returns the maximum value of the spin box.&lt;/p&gt;
&lt;p&gt;When setting this property the &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt; is adjusted if necessary, to ensure that the range remains valid.&lt;/p&gt;
&lt;p&gt;The default maximum value is 99.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setMaximum(int)&quot;&gt;&lt;tt&gt;setMaximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int minimum()" doc="/**
&lt;p&gt;Returns the minimum value of the spin box.&lt;/p&gt;
&lt;p&gt;When setting this property the &lt;a href=&quot;QSpinBox.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt; is adjusted if necessary to ensure that the range remains valid.&lt;/p&gt;
&lt;p&gt;The default minimum value is 0.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setMinimum(int)&quot;&gt;&lt;tt&gt;setMinimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String prefix()" doc="/**
&lt;p&gt;Returns the spin box's prefix.&lt;/p&gt;
&lt;p&gt;The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:&lt;/p&gt;
&lt;pre&gt;    sb-&amp;gt;setPrefix(&amp;quot;$&amp;quot;);&lt;/pre&gt;
&lt;p&gt;To turn off the prefix display, set this property to an empty string. The default is no prefix. The prefix is not displayed when &lt;a href=&quot;QSpinBox.html#value()&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt; == &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;&lt;tt&gt;minimum&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; is set.&lt;/p&gt;
&lt;p&gt;If no prefix is set, &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setPrefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setSuffix(java.lang.String)&quot;&gt;&lt;tt&gt;setSuffix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#setSpecialValueText(java.lang.String)&quot;&gt;&lt;tt&gt;setSpecialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMaximum(int max)" doc="/**
&lt;p&gt;Sets the maximum value of the spin box to &lt;tt&gt;max&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When setting this property the &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt; is adjusted if necessary, to ensure that the range remains valid.&lt;/p&gt;
&lt;p&gt;The default maximum value is 99.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#maximum()&quot;&gt;&lt;tt&gt;maximum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMinimum(int min)" doc="/**
&lt;p&gt;Sets the minimum value of the spin box to &lt;tt&gt;min&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When setting this property the &lt;a href=&quot;QSpinBox.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt; is adjusted if necessary to ensure that the range remains valid.&lt;/p&gt;
&lt;p&gt;The default minimum value is 0.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;&lt;tt&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPrefix(java.lang.String prefix)" doc="/**
&lt;p&gt;Sets the spin box's prefix to &lt;tt&gt;prefix&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The prefix is prepended to the start of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:&lt;/p&gt;
&lt;pre&gt;    sb-&amp;gt;setPrefix(&amp;quot;$&amp;quot;);&lt;/pre&gt;
&lt;p&gt;To turn off the prefix display, set this property to an empty string. The default is no prefix. The prefix is not displayed when &lt;a href=&quot;QSpinBox.html#value()&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt; == &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;&lt;tt&gt;minimum&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; is set.&lt;/p&gt;
&lt;p&gt;If no prefix is set, &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setSuffix(java.lang.String)&quot;&gt;&lt;tt&gt;setSuffix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#setSpecialValueText(java.lang.String)&quot;&gt;&lt;tt&gt;setSpecialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRange(int min, int max)" doc="/**
&lt;p&gt;Convenience function to set the &lt;tt&gt;min&lt;/tt&gt;, and &lt;tt&gt;max&lt;/tt&gt; values with a single function call.&lt;/p&gt;
&lt;pre&gt;    setRange(minimum, maximum);&lt;/pre&gt;
&lt;p&gt;is equivalent to:&lt;/p&gt;
&lt;pre&gt;    setMinimum(minimum);
    setMaximum(maximum);&lt;/pre&gt;

@see &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;minimum&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#maximum()&quot;&gt;maximum&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSingleStep(int val)" doc="/**
&lt;p&gt;Sets the step value to &lt;tt&gt;val&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When the user uses the arrows to change the spin box's value the value will be incremented/decremented by the amount of the &lt;a href=&quot;QSpinBox.html#singleStep()&quot;&gt;&lt;tt&gt;singleStep&lt;/tt&gt;&lt;/a&gt;. The default value is 1. Setting a &lt;a href=&quot;QSpinBox.html#singleStep()&quot;&gt;&lt;tt&gt;singleStep&lt;/tt&gt;&lt;/a&gt; value of less than 0 does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#singleStep()&quot;&gt;&lt;tt&gt;singleStep&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setSuffix(java.lang.String suffix)" doc="/**
&lt;p&gt;Sets the suffix of the spin box to &lt;tt&gt;suffix&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:&lt;/p&gt;
&lt;pre&gt;    sb-&amp;gt;setSuffix(&amp;quot; km&amp;quot;);&lt;/pre&gt;
&lt;p&gt;To turn off the suffix display, set this property to an empty string. The default is no suffix. The suffix is not displayed for the &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;&lt;tt&gt;minimum&lt;/tt&gt;&lt;/a&gt; if &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; is set.&lt;/p&gt;
&lt;p&gt;If no suffix is set, &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setPrefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#setSpecialValueText(java.lang.String)&quot;&gt;&lt;tt&gt;setSpecialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setValue(int val)" doc="/**
&lt;p&gt;Sets the value of the spin box to &lt;tt&gt;val&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSpinBox.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QSpinBox.html#valueChanged(int)&quot;&gt;&lt;tt&gt;valueChanged&lt;/tt&gt;&lt;/a&gt; if the new value is different from the old one.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#value()&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int singleStep()" doc="/**
&lt;p&gt;Returns the step value.&lt;/p&gt;
&lt;p&gt;When the user uses the arrows to change the spin box's value the value will be incremented/decremented by the amount of the &lt;a href=&quot;QSpinBox.html#singleStep()&quot;&gt;&lt;tt&gt;singleStep&lt;/tt&gt;&lt;/a&gt;. The default value is 1. Setting a &lt;a href=&quot;QSpinBox.html#singleStep()&quot;&gt;&lt;tt&gt;singleStep&lt;/tt&gt;&lt;/a&gt; value of less than 0 does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setSingleStep(int)&quot;&gt;&lt;tt&gt;setSingleStep&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String suffix()" doc="/**
&lt;p&gt;Returns the suffix of the spin box.&lt;/p&gt;
&lt;p&gt;The suffix is appended to the end of the displayed value. Typical use is to display a unit of measurement or a currency symbol. For example:&lt;/p&gt;
&lt;pre&gt;    sb-&amp;gt;setSuffix(&amp;quot; km&amp;quot;);&lt;/pre&gt;
&lt;p&gt;To turn off the suffix display, set this property to an empty string. The default is no suffix. The suffix is not displayed for the &lt;a href=&quot;QSpinBox.html#minimum()&quot;&gt;&lt;tt&gt;minimum&lt;/tt&gt;&lt;/a&gt; if &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; is set.&lt;/p&gt;
&lt;p&gt;If no suffix is set, &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setSuffix(java.lang.String)&quot;&gt;&lt;tt&gt;setSuffix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#setPrefix(java.lang.String)&quot;&gt;&lt;tt&gt;setPrefix&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#setSpecialValueText(java.lang.String)&quot;&gt;&lt;tt&gt;setSpecialValueText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int value()" doc="/**
&lt;p&gt;Returns the value of the spin box.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QSpinBox.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; will emit &lt;a href=&quot;QSpinBox.html#valueChanged(int)&quot;&gt;&lt;tt&gt;valueChanged&lt;/tt&gt;&lt;/a&gt; if the new value is different from the old one.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#setValue(int)&quot;&gt;&lt;tt&gt;setValue&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public java.lang.String fixup(java.lang.String str)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected java.lang.String textFromValue(int val)" doc="/**
&lt;p&gt;This virtual function is used by the spin box whenever it needs to display the given &lt;tt&gt;val&lt;/tt&gt;. The default implementation returns a string containing &lt;tt&gt;val&lt;/tt&gt; printed in the standard way using QLocale().toString(). Reimplementations may return anything. (See the example in the detailed description.)&lt;/p&gt;
&lt;p&gt;Note: &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; does not call this function for &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; and that neither &lt;a href=&quot;QSpinBox.html#prefix()&quot;&gt;&lt;tt&gt;prefix&lt;/tt&gt;&lt;/a&gt; nor &lt;a href=&quot;QSpinBox.html#suffix()&quot;&gt;&lt;tt&gt;suffix&lt;/tt&gt;&lt;/a&gt; should be included in the return value.&lt;/p&gt;
&lt;p&gt;If you reimplement this, you may also need to reimplement &lt;a href=&quot;QSpinBox.html#valueFromText(java.lang.String)&quot;&gt;&lt;tt&gt;valueFromText&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#valueFromText(java.lang.String)&quot;&gt;&lt;tt&gt;valueFromText&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.gui.QValidator.State validate(com.trolltech.qt.gui.QValidator.QValidationData input)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;validate&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;input&lt;/tt&gt;, ). */"/>
    <method name="protected int valueFromText(java.lang.String text)" doc="/**
&lt;p&gt;This virtual function is used by the spin box whenever it needs to interpret &lt;tt&gt;text&lt;/tt&gt; entered by the user as a value.&lt;/p&gt;
&lt;p&gt;Subclasses that need to display spin box values in a non-numeric way need to reimplement this function.&lt;/p&gt;
&lt;p&gt;Note: &lt;a href=&quot;QSpinBox.html#QSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt; handles &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; separately; this function is only concerned with the other values.&lt;/p&gt;

@see &lt;a href=&quot;QSpinBox.html#textFromValue(int)&quot;&gt;&lt;tt&gt;textFromValue&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
