Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1900

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QAbstractSpinBox" doc="/**
&lt;p&gt;The &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; class provides a spinbox and a line edit to display values.&lt;/p&gt;
&lt;p&gt;The class is designed as a common super class for widgets like &lt;a href=&quot;QSpinBox.html&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QDoubleSpinBox.html&quot;&gt;&lt;tt&gt;QDoubleSpinBox&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDateTimeEdit.html&quot;&gt;&lt;tt&gt;QDateTimeEdit&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here are the main properties of the class:&lt;/p&gt;
&lt;ol type=&quot;1&quot;&gt;
&lt;li&gt;&lt;a href=&quot;QAbstractSpinBox.html#text()&quot;&gt;text&lt;/tt&gt;&lt;/a&gt;: The text that is displayed in the &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QAbstractSpinBox.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt;: The alignment of the text in the &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;QAbstractSpinBox.html#wrapping()&quot;&gt;wrapping&lt;/tt&gt;&lt;/a&gt;: Whether the &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; wraps from the minimum value to the maximum value and vica versa.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; provides a virtual &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt; function that is called whenever the user triggers a step. This function takes an integer value to signify how many steps were taken. E.g&amp;#x2e; Pressing Qt::Key_Down will trigger a call to &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;(-1).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; also provide a virtual function &lt;a href=&quot;QAbstractSpinBox.html#stepEnabled()&quot;&gt;&lt;tt&gt;stepEnabled&lt;/tt&gt;&lt;/a&gt; to determine whether stepping up/down is allowed at any point. This function returns a bitset of StepEnabled.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSlider.html&quot;&gt;&lt;tt&gt;QAbstractSlider&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QSpinBox.html&quot;&gt;&lt;tt&gt;QSpinBox&lt;/tt&gt;&lt;/a&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;%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;
 */"/>
    <method name="public QAbstractSpinBox(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Constructs an abstract spinbox with the given &lt;tt&gt;parent&lt;/tt&gt; with default &lt;a href=&quot;QAbstractSpinBox.html#wrapping()&quot;&gt;wrapping&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QAbstractSpinBox.html#alignment()&quot;&gt;alignment&lt;/tt&gt;&lt;/a&gt; properties.&lt;/p&gt;
 */"/>
    <method name="public QAbstractSpinBox()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final com.trolltech.qt.core.Qt.Alignment alignment()" doc="/**
&lt;p&gt;Returns the alignment of the spin box.&lt;/p&gt;
&lt;p&gt;Possible Values are Qt::AlignLeft, Qt::AlignRight, and Qt::AlignHCenter.&lt;/p&gt;
&lt;p&gt;By default, the alignment is Qt::AlignLeft&lt;/p&gt;
&lt;p&gt;Attempting to set the alignment to an illegal flag combination does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#setAlignment(com.trolltech.qt.core.Qt.Alignment)&quot;&gt;&lt;tt&gt;setAlignment&lt;/tt&gt;&lt;/a&gt;
@see Qt::Alignment&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractSpinBox.ButtonSymbols buttonSymbols()" doc="/**
&lt;p&gt;Returns the current button symbol mode.&lt;/p&gt;
&lt;p&gt;The possible values can be either &lt;tt&gt;UpDownArrows&lt;/tt&gt; or &lt;tt&gt;PlusMinus&lt;/tt&gt;. The default is &lt;tt&gt;UpDownArrows&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that some styles might render &lt;a href=&quot;QAbstractSpinBox.html#ButtonSymbols-enum&quot;&gt;&lt;tt&gt;PlusMinus&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractSpinBox.html#ButtonSymbols-enum&quot;&gt;&lt;tt&gt;UpDownArrows&lt;/tt&gt;&lt;/a&gt; identically.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#setButtonSymbols(com.trolltech.qt.gui.QAbstractSpinBox.ButtonSymbols)&quot;&gt;&lt;tt&gt;setButtonSymbols&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#ButtonSymbols-enum&quot;&gt;&lt;tt&gt;ButtonSymbols&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QAbstractSpinBox.CorrectionMode correctionMode()" doc="/**
&lt;p&gt;Returns the mode to correct an Intermediate&lt;/tt&gt; value if editing finishes.&lt;/p&gt;
&lt;p&gt;The default mode is QAbstractSpinBox::CorrectToPreviousValue.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#setCorrectionMode(com.trolltech.qt.gui.QAbstractSpinBox.CorrectionMode)&quot;&gt;&lt;tt&gt;setCorrectionMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;acceptableInput&lt;/tt&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#fixup(java.lang.String)&quot;&gt;&lt;tt&gt;fixup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasAcceptableInput()" doc="/**
&lt;p&gt;Returns whether the input satisfies the current validation.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#fixup(java.lang.String)&quot;&gt;&lt;tt&gt;fixup&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#correctionMode()&quot;&gt;&lt;tt&gt;correctionMode&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean hasFrame()" doc="/**
&lt;p&gt;Returns whether the spin box draws itself with a frame.&lt;/p&gt;
&lt;p&gt;If enabled (the default) the spin box draws itself inside a frame, otherwise the spin box draws itself without any frame.&lt;/p&gt;
 */"/>
    <method name="public final void interpretText()" doc="/**
&lt;p&gt;This function interprets the text of the spin box. If the value has changed since last interpretation it will emit signals.&lt;/p&gt;
 */"/>
    <method name="public final boolean isAccelerated()" doc="/**
&lt;p&gt;Returns whether the spin box will accelerate the frequency of the steps when pressing the step Up/Down buttons..&lt;/p&gt;
&lt;p&gt;If enabled the spin box will increase/decrease the value faster the longer you hold the button down.&lt;/p&gt;
 */"/>
    <method name="public final boolean isReadOnly()" doc="/**
&lt;p&gt;Returns whether the spin box is read only..&lt;/p&gt;
&lt;p&gt;In read-only mode, the user can still copy the text to the clipboard, or drag and drop the text; but cannot edit it.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; in the &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; does not show a cursor in read-only mode.&lt;/p&gt;

@see &lt;tt&gt;QLineEdit::readOnly&lt;/tt&gt; */"/>
    <method name="public final boolean keyboardTracking()" doc="/**
&lt;p&gt;Returns whether keyboard tracking is enabled for the spinbox..&lt;/p&gt;
&lt;p&gt;If keyboard tracking is enabled (the default), the spinbox emits the valueChanged() signal while the new value is being entered from the keyboard.&lt;/p&gt;
&lt;p&gt;E.g&amp;#x2e; when the user enters the value 600 by typing 6, 0, and 0, the spinbox emits 3 signals with the values 6, 60, and 600 respectively.&lt;/p&gt;
&lt;p&gt;If keyboard tracking is disabled, the spinbox doesn't emit the valueChanged() signal while typing. It emits the signal later, when the return key is pressed, when keyboard focus is lost, or when other spinbox functionality is used, e.g&amp;#x2e; pressing an arrow key.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#setKeyboardTracking(boolean)&quot;&gt;&lt;tt&gt;setKeyboardTracking&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final com.trolltech.qt.gui.QLineEdit lineEdit()" doc="/**
&lt;p&gt;This function returns a pointer to the line edit of the spin box.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#setLineEdit(com.trolltech.qt.gui.QLineEdit)&quot;&gt;&lt;tt&gt;setLineEdit&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void selectAll()" doc="/**
&lt;p&gt;Selects all the text in the spinbox except the prefix and suffix.&lt;/p&gt;
 */"/>
    <method name="public final void setAccelerated(boolean on)" doc="/**
&lt;p&gt;Sets whether the spin box will accelerate the frequency of the steps when pressing the step Up/Down buttons. to &lt;tt&gt;on&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If enabled the spin box will increase/decrease the value faster the longer you hold the button down.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#isAccelerated()&quot;&gt;&lt;tt&gt;isAccelerated&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setAlignment(com.trolltech.qt.core.Qt.Alignment flag)" doc="/**
&lt;p&gt;Sets the alignment of the spin box to &lt;tt&gt;flag&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Possible Values are Qt::AlignLeft, Qt::AlignRight, and Qt::AlignHCenter.&lt;/p&gt;
&lt;p&gt;By default, the alignment is Qt::AlignLeft&lt;/p&gt;
&lt;p&gt;Attempting to set the alignment to an illegal flag combination does nothing.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#alignment()&quot;&gt;&lt;tt&gt;alignment&lt;/tt&gt;&lt;/a&gt;
@see Qt::Alignment&lt;/tt&gt; */"/>
    <method name="public final void setButtonSymbols(com.trolltech.qt.gui.QAbstractSpinBox.ButtonSymbols bs)" doc="/**
&lt;p&gt;Sets the current button symbol mode to &lt;tt&gt;bs&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The possible values can be either &lt;tt&gt;UpDownArrows&lt;/tt&gt; or &lt;tt&gt;PlusMinus&lt;/tt&gt;. The default is &lt;tt&gt;UpDownArrows&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that some styles might render &lt;a href=&quot;QAbstractSpinBox.html#ButtonSymbols-enum&quot;&gt;&lt;tt&gt;PlusMinus&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QAbstractSpinBox.html#ButtonSymbols-enum&quot;&gt;&lt;tt&gt;UpDownArrows&lt;/tt&gt;&lt;/a&gt; identically.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#buttonSymbols()&quot;&gt;&lt;tt&gt;buttonSymbols&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#ButtonSymbols-enum&quot;&gt;&lt;tt&gt;ButtonSymbols&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCorrectionMode(com.trolltech.qt.gui.QAbstractSpinBox.CorrectionMode cm)" doc="/**
&lt;p&gt;Sets the mode to correct an Intermediate&lt;/tt&gt; value if editing finishes to &lt;tt&gt;cm&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default mode is QAbstractSpinBox::CorrectToPreviousValue.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#correctionMode()&quot;&gt;&lt;tt&gt;correctionMode&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;acceptableInput&lt;/tt&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;&lt;tt&gt;validate&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#fixup(java.lang.String)&quot;&gt;&lt;tt&gt;fixup&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFrame(boolean arg__1)" doc="/**
&lt;p&gt;Sets whether the spin box draws itself with a frame to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If enabled (the default) the spin box draws itself inside a frame, otherwise the spin box draws itself without any frame.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#hasFrame()&quot;&gt;&lt;tt&gt;hasFrame&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setKeyboardTracking(boolean kt)" doc="/**
&lt;p&gt;Sets whether keyboard tracking is enabled for the spinbox. to &lt;tt&gt;kt&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If keyboard tracking is enabled (the default), the spinbox emits the valueChanged() signal while the new value is being entered from the keyboard.&lt;/p&gt;
&lt;p&gt;E.g&amp;#x2e; when the user enters the value 600 by typing 6, 0, and 0, the spinbox emits 3 signals with the values 6, 60, and 600 respectively.&lt;/p&gt;
&lt;p&gt;If keyboard tracking is disabled, the spinbox doesn't emit the valueChanged() signal while typing. It emits the signal later, when the return key is pressed, when keyboard focus is lost, or when other spinbox functionality is used, e.g&amp;#x2e; pressing an arrow key.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#keyboardTracking()&quot;&gt;&lt;tt&gt;keyboardTracking&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected final void setLineEdit(com.trolltech.qt.gui.QLineEdit edit)" doc="/**
&lt;p&gt;Sets the line edit of the spinbox to be &lt;tt&gt;edit&lt;/tt&gt; instead of the current line edit widget. &lt;tt&gt;edit&lt;/tt&gt; can not be 0.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; takes ownership of the new &lt;a href=&quot;QAbstractSpinBox.html#lineEdit()&quot;&gt;&lt;tt&gt;lineEdit&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If QLineEdit::validator() for the &lt;tt&gt;edit&lt;/tt&gt; returns 0, the internal validator of the spinbox will be set on the line edit.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#lineEdit()&quot;&gt;&lt;tt&gt;lineEdit&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setReadOnly(boolean r)" doc="/**
&lt;p&gt;Sets whether the spin box is read only. to &lt;tt&gt;r&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;In read-only mode, the user can still copy the text to the clipboard, or drag and drop the text; but cannot edit it.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QLineEdit.html&quot;&gt;&lt;tt&gt;QLineEdit&lt;/tt&gt;&lt;/a&gt; in the &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; does not show a cursor in read-only mode.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#isReadOnly()&quot;&gt;&lt;tt&gt;isReadOnly&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QLineEdit::readOnly&lt;/tt&gt; */"/>
    <method name="public final void setSpecialValueText(java.lang.String txt)" doc="/**
&lt;p&gt;Sets the special-value text to &lt;tt&gt;txt&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If set, the spin box will display this text instead of a numeric value whenever the current value is equal to minimum(). Typical use is to indicate that this choice has a special (default) meaning.&lt;/p&gt;
&lt;p&gt;For example, if your spin box allows the user to choose a scale factor (or zoom level) for displaying an image, and your application is able to automatically choose one that will enable the image to fit completely within the display window, you can set up the spin box like this:&lt;/p&gt;
&lt;pre&gt;        QSpinBox *zoomSpinBox = new QSpinBox;
        zoomSpinBox-&amp;gt;setRange(0, 1000);
        zoomSpinBox-&amp;gt;setSingleStep(10);
        zoomSpinBox-&amp;gt;setSuffix(&amp;quot;%&amp;quot;);
        zoomSpinBox-&amp;gt;setSpecialValueText(tr(&amp;quot;Automatic&amp;quot;));
        zoomSpinBox-&amp;gt;setValue(100);&lt;/pre&gt;
&lt;p&gt;The user will then be able to choose a scale from 1% to 1000% or select &amp;quot;Auto&amp;quot; to leave it up to the application to choose. Your code must then interpret the spin box value of 0 as a request from the user to scale the image to fit inside the window.&lt;/p&gt;
&lt;p&gt;All values are displayed with the prefix and suffix (if set), &lt;i&gt;except&lt;/i&gt; for the special value, which only shows the special value text. This special text is passed in the QSpinBox::valueChanged() signal that passes a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To turn off the special-value text display, call this function with an empty string. The default is no special-value text, i.e&amp;#x2e; the numeric value is shown as usual.&lt;/p&gt;
&lt;p&gt;If no special-value text is set, &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&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 setWrapping(boolean w)" doc="/**
&lt;p&gt;Sets whether the spin box is circular. to &lt;tt&gt;w&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If wrapping is true stepping up from maximum() value will take you to the minimum() value and vica versa. Wrapping only make sense if you have minimum() and maximum() values set.&lt;/p&gt;
&lt;pre&gt;    QSpinBox *spinBox = new QSpinBox(this);
    spinBox-&amp;gt;setRange(0, 100);
    spinBox-&amp;gt;setWrapping(true);
    spinBox-&amp;gt;setValue(100);
    spinBox-&amp;gt;stepBy(1);
&lt;span class=&quot;comment&quot;&gt;    // value is 0&lt;/span&gt;&lt;/pre&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#wrapping()&quot;&gt;&lt;tt&gt;wrapping&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSpinBox::minimum&lt;/tt&gt;
@see &lt;tt&gt;QSpinBox::maximum&lt;/tt&gt; */"/>
    <method name="public final java.lang.String specialValueText()" doc="/**
&lt;p&gt;Returns the special-value text.&lt;/p&gt;
&lt;p&gt;If set, the spin box will display this text instead of a numeric value whenever the current value is equal to minimum(). Typical use is to indicate that this choice has a special (default) meaning.&lt;/p&gt;
&lt;p&gt;For example, if your spin box allows the user to choose a scale factor (or zoom level) for displaying an image, and your application is able to automatically choose one that will enable the image to fit completely within the display window, you can set up the spin box like this:&lt;/p&gt;
&lt;pre&gt;        QSpinBox *zoomSpinBox = new QSpinBox;
        zoomSpinBox-&amp;gt;setRange(0, 1000);
        zoomSpinBox-&amp;gt;setSingleStep(10);
        zoomSpinBox-&amp;gt;setSuffix(&amp;quot;%&amp;quot;);
        zoomSpinBox-&amp;gt;setSpecialValueText(tr(&amp;quot;Automatic&amp;quot;));
        zoomSpinBox-&amp;gt;setValue(100);&lt;/pre&gt;
&lt;p&gt;The user will then be able to choose a scale from 1% to 1000% or select &amp;quot;Auto&amp;quot; to leave it up to the application to choose. Your code must then interpret the spin box value of 0 as a request from the user to scale the image to fit inside the window.&lt;/p&gt;
&lt;p&gt;All values are displayed with the prefix and suffix (if set), &lt;i&gt;except&lt;/i&gt; for the special value, which only shows the special value text. This special text is passed in the QSpinBox::valueChanged() signal that passes a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To turn off the special-value text display, call this function with an empty string. The default is no special-value text, i.e&amp;#x2e; the numeric value is shown as usual.&lt;/p&gt;
&lt;p&gt;If no special-value text is set, &lt;a href=&quot;QAbstractSpinBox.html#specialValueText()&quot;&gt;&lt;tt&gt;specialValueText&lt;/tt&gt;&lt;/a&gt; returns an empty string.&lt;/p&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 stepDown()" doc="/**
&lt;p&gt;Steps down by one linestep Calling this slot is analogous to calling &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;(-1);&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#stepUp()&quot;&gt;&lt;tt&gt;stepUp&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void stepUp()" doc="/**
&lt;p&gt;Steps up by one linestep Calling this slot is analogous to calling &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;(1);&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#stepDown()&quot;&gt;&lt;tt&gt;stepDown&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the spin box's text, including any prefix and suffix.&lt;/p&gt;
&lt;p&gt;There is no default text.&lt;/p&gt;
 */"/>
    <method name="public final boolean wrapping()" doc="/**
&lt;p&gt;Returns whether the spin box is circular..&lt;/p&gt;
&lt;p&gt;If wrapping is true stepping up from maximum() value will take you to the minimum() value and vica versa. Wrapping only make sense if you have minimum() and maximum() values set.&lt;/p&gt;
&lt;pre&gt;    QSpinBox *spinBox = new QSpinBox(this);
    spinBox-&amp;gt;setRange(0, 100);
    spinBox-&amp;gt;setWrapping(true);
    spinBox-&amp;gt;setValue(100);
    spinBox-&amp;gt;stepBy(1);
&lt;span class=&quot;comment&quot;&gt;    // value is 0&lt;/span&gt;&lt;/pre&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#setWrapping(boolean)&quot;&gt;&lt;tt&gt;setWrapping&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QSpinBox::minimum&lt;/tt&gt;
@see &lt;tt&gt;QSpinBox::maximum&lt;/tt&gt; */"/>
    <method name="protected void changeEvent(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void clear()" doc="/**
&lt;p&gt;Clears the lineedit of all text but prefix and suffix.&lt;/p&gt;
 */"/>
    <method name="protected void closeEvent(com.trolltech.qt.gui.QCloseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&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 input)" doc="/**
&lt;p&gt;This virtual function is called by the &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; if the &lt;tt&gt;input&lt;/tt&gt; is not validated to QValidator::Acceptable when Return is pressed or &lt;a href=&quot;QAbstractSpinBox.html#interpretText()&quot;&gt;&lt;tt&gt;interpretText&lt;/tt&gt;&lt;/a&gt; is called. It will try to change the text so it is valid. Reimplemented in the various subclasses.&lt;/p&gt;
 */"/>
    <method name="protected void focusInEvent(com.trolltech.qt.gui.QFocusEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void focusOutEvent(com.trolltech.qt.gui.QFocusEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void hideEvent(com.trolltech.qt.gui.QHideEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyPressEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void keyReleaseEvent(com.trolltech.qt.gui.QKeyEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize minimumSizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseMoveEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mousePressEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void mouseReleaseEvent(com.trolltech.qt.gui.QMouseEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void paintEvent(com.trolltech.qt.gui.QPaintEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void resizeEvent(com.trolltech.qt.gui.QResizeEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="protected void showEvent(com.trolltech.qt.gui.QShowEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QSize sizeHint()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void stepBy(int steps)" doc="/**
&lt;p&gt;Virtual function that is called whenever the user triggers a step. The &lt;tt&gt;steps&lt;/tt&gt; parameter indicates how many steps were taken, e.g&amp;#x2e; Pressing Qt::Key_Down will trigger a call to &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;(-1), whereas pressing Qt::Key_Prior will trigger a call to &lt;a href=&quot;QAbstractSpinBox.html#stepBy(int)&quot;&gt;&lt;tt&gt;stepBy&lt;/tt&gt;&lt;/a&gt;(10).&lt;/p&gt;
&lt;p&gt;If you subclass &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; you must reimplement this function. Note that this function is called even if the resulting value will be outside the bounds of minimum and maximum. It's this function's job to handle these situations.&lt;/p&gt;
 */"/>
    <method name="protected com.trolltech.qt.gui.QAbstractSpinBox.StepEnabled stepEnabled()" doc="/**
&lt;p&gt;Virtual function that determines whether stepping up and down is legal at any given time.&lt;/p&gt;
&lt;p&gt;The up arrow will be painted as disabled unless (&lt;a href=&quot;QAbstractSpinBox.html#stepEnabled()&quot;&gt;&lt;tt&gt;stepEnabled&lt;/tt&gt;&lt;/a&gt; &amp;amp; &lt;a href=&quot;QAbstractSpinBox.html#StepEnabledFlag-enum&quot;&gt;&lt;tt&gt;StepUpEnabled&lt;/tt&gt;&lt;/a&gt;) != 0.&lt;/p&gt;
&lt;p&gt;The default implementation will return (&lt;a href=&quot;QAbstractSpinBox.html#StepEnabledFlag-enum&quot;&gt;&lt;tt&gt;StepUpEnabled&lt;/tt&gt;&lt;/a&gt;| &lt;a href=&quot;QAbstractSpinBox.html#StepEnabledFlag-enum&quot;&gt;&lt;tt&gt;StepDownEnabled&lt;/tt&gt;&lt;/a&gt;) if wrapping is turned on. Else it will return &lt;a href=&quot;QAbstractSpinBox.html#StepEnabledFlag-enum&quot;&gt;&lt;tt&gt;StepDownEnabled&lt;/tt&gt;&lt;/a&gt; if value is &amp;gt; minimum() or'ed with &lt;a href=&quot;QAbstractSpinBox.html#StepEnabledFlag-enum&quot;&gt;&lt;tt&gt;StepUpEnabled&lt;/tt&gt;&lt;/a&gt; if value &amp;lt; maximum().&lt;/p&gt;
&lt;p&gt;If you subclass &lt;a href=&quot;QAbstractSpinBox.html#QAbstractSpinBox(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;QAbstractSpinBox&lt;/tt&gt;&lt;/a&gt; you will need to reimplement this function.&lt;/p&gt;

@see &lt;tt&gt;QSpinBox::minimum&lt;/tt&gt;
@see &lt;tt&gt;QSpinBox::maximum&lt;/tt&gt;
@see &lt;a href=&quot;QAbstractSpinBox.html#wrapping()&quot;&gt;&lt;tt&gt;wrapping&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void timerEvent(com.trolltech.qt.core.QTimerEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&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;QAbstractSpinBox.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 void wheelEvent(com.trolltech.qt.gui.QWheelEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <enum name="StepEnabledFlag">
        <enum-value name="StepNone" doc="/**
Internal. */"/>
        <enum-value name="StepUpEnabled" doc="/**
Internal. */"/>
        <enum-value name="StepDownEnabled" doc="/**
Internal. */"/>
</enum>
    <enum name="CorrectionMode" doc="/**
&lt;p&gt;This enum type describes the mode the spinbox will use to correct an Intermediate&lt;/tt&gt; value if editing finishes.&lt;/p&gt;

@see &lt;a href=&quot;QAbstractSpinBox.html#correctionMode()&quot;&gt;&lt;tt&gt;correctionMode&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="CorrectToPreviousValue" doc="/**
&lt;p&gt;The spinbox will revert to the last valid value.&lt;/p&gt;
 */"/>
        <enum-value name="CorrectToNearestValue" doc="/**
&lt;p&gt;The spinbox will revert to the nearest valid value.&lt;/p&gt;
 */"/>
</enum>
    <enum name="ButtonSymbols" doc="/**
&lt;p&gt;This enum type describes the symbols that can be displayed on the buttons in a spin box.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;%2E%2E/images/qspinbox-updown.png&quot; /&gt; &lt;img src=&quot;%2E%2E/images/qspinbox-plusminus.png&quot; /&gt;&lt;/p&gt;

@see &lt;tt&gt;QAbstractSpinBox::buttonSymbols&lt;/tt&gt; */">
        <enum-value name="UpDownArrows" doc="/**
&lt;p&gt;Little arrows in the classic style.&lt;/p&gt;
 */"/>
        <enum-value name="PlusMinus" doc="/**
&lt;p&gt;&lt;b&gt;+&lt;/b&gt; and &lt;b&gt;-&lt;/b&gt; symbols.&lt;/p&gt;
 */"/>
        <enum-value name="NoButtons" doc="/**
&lt;p&gt;Don't display buttons.&lt;/p&gt;
 */"/>
</enum>
</class>