<class name="QIntValidator" doc="/**
&lt;p&gt;The &lt;a href=&quot;QIntValidator.html#QIntValidator(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIntValidator&lt;/tt&gt;&lt;/a&gt; class provides a validator that ensures a string contains a valid integer within a specified range.&lt;/p&gt;
&lt;p&gt;Example of use:&lt;/p&gt;
&lt;pre&gt;    QValidator *validator = new QIntValidator(100, 999, this);
    QLineEdit *edit = new QLineEdit(this);

&lt;span class=&quot;comment&quot;&gt;    //&lt;/span&gt; the edit lineedit will only accept integers between 100 and 999
    edit-&amp;gt;setValidator(validator);&lt;/pre&gt;
&lt;p&gt;Below we present some examples of validators. In practice they would normally be associated with a widget as in the example above.&lt;/p&gt;
&lt;pre&gt;    QString str;
    int pos = 0;
    QIntValidator v(100, 999, this);

    str = &amp;quot;1&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Intermediate
    str = &amp;quot;12&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Intermediate

    str = &amp;quot;123&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Acceptable
    str = &amp;quot;678&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Acceptable

    str = &amp;quot;1234&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Invalid
    str = &amp;quot;-123&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Invalid
    str = &amp;quot;abc&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Invalid
    str = &amp;quot;12cm&amp;quot;;
    v.validate(str, pos);     &lt;span class=&quot;comment&quot;&gt;//&lt;/span&gt; returns Invalid&lt;/pre&gt;
&lt;p&gt;The minimum and maximum values are set in one call with &lt;a href=&quot;QIntValidator.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt;, or individually with &lt;a href=&quot;QIntValidator.html#setBottom(int)&quot;&gt;&lt;tt&gt;setBottom&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QIntValidator.html#setTop(int)&quot;&gt;&lt;tt&gt;setTop&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QIntValidator.html#QIntValidator(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIntValidator&lt;/tt&gt;&lt;/a&gt; uses its &lt;a href=&quot;QValidator.html#locale()&quot;&gt;&lt;tt&gt;locale&lt;/tt&gt;&lt;/a&gt; to interpret the number. For example, in Arabic locales, &lt;a href=&quot;QIntValidator.html#QIntValidator(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIntValidator&lt;/tt&gt;&lt;/a&gt; will accept Arabic digits. In addition, &lt;a href=&quot;QIntValidator.html#QIntValidator(com.trolltech.qt.core.QObject)&quot;&gt;&lt;tt&gt;QIntValidator&lt;/tt&gt;&lt;/a&gt; is always guaranteed to accept a number formatted according to the &amp;quot;C&amp;quot; locale.&lt;/p&gt;

@see &lt;a href=&quot;QDoubleValidator.html&quot;&gt;&lt;tt&gt;QDoubleValidator&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QRegExpValidator.html&quot;&gt;&lt;tt&gt;QRegExpValidator&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-lineedits.html&quot;&gt;Line Edits Example&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QIntValidator(int bottom, int top, com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a validator with a &lt;tt&gt;parent&lt;/tt&gt;, that accepts integers from &lt;tt&gt;bottom&lt;/tt&gt; to &lt;tt&gt;top&lt;/tt&gt; inclusive.&lt;/p&gt;
 */"/>
    <method name="public QIntValidator(com.trolltech.qt.core.QObject parent)" doc="/**
&lt;p&gt;Constructs a validator with a &lt;tt&gt;parent&lt;/tt&gt; object that accepts all integers.&lt;/p&gt;
 */"/>
    <method name="public final int bottom()" doc="/**
&lt;p&gt;Returns the validator's lowest acceptable value.&lt;/p&gt;

@see &lt;a href=&quot;QIntValidator.html#setBottom(int)&quot;&gt;&lt;tt&gt;setBottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIntValidator.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBottom(int arg__1)" doc="/**
&lt;p&gt;Sets the validator's lowest acceptable value to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QIntValidator.html#bottom()&quot;&gt;&lt;tt&gt;bottom&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIntValidator.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setTop(int arg__1)" doc="/**
&lt;p&gt;Sets the validator's highest acceptable value to &lt;tt&gt;arg__1&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QIntValidator.html#top()&quot;&gt;&lt;tt&gt;top&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIntValidator.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int top()" doc="/**
&lt;p&gt;Returns the validator's highest acceptable value.&lt;/p&gt;

@see &lt;a href=&quot;QIntValidator.html#setTop(int)&quot;&gt;&lt;tt&gt;setTop&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIntValidator.html#setRange(int, int)&quot;&gt;&lt;tt&gt;setRange&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void setRange(int bottom, int top)" doc="/**
&lt;p&gt;Sets the range of the validator to only accept integers between &lt;tt&gt;bottom&lt;/tt&gt; and &lt;tt&gt;top&lt;/tt&gt; inclusive.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QValidator.State validate(com.trolltech.qt.gui.QValidator.QValidationData arg__1)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIntValidator.html#validate(com.trolltech.qt.gui.QValidator.QValidationData)&quot;&gt;validate&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;arg__1&lt;/tt&gt;, ). */"/>
</class>
