IntValidator QML Type

Defines a validator for integer values. 更多...

import 语句: import QtQuick
实例化: QIntValidator

特性

详细描述

The IntValidator type provides a validator for integer values.

若无 locale is set IntValidator uses the default locale to interpret the number and will accept locale specific digits, group separators, and positive and negative signs. In addition, IntValidator is always guaranteed to accept a number formatted according to the "C" locale.

另请参阅 DoubleValidator , RegularExpressionValidator ,和 Validating Input Text .

特性文档编制

[read-only] bottom : int

This property holds the validator's lowest acceptable value. By default, this property's value is derived from the lowest signed integer available (typically -2147483647).


locale : string

This property holds the name of the locale used to interpret the number.

另请参阅 Qt.locale ().


[read-only] top : int

This property holds the validator's highest acceptable value. By default, this property's value is derived from the highest signed integer available (typically 2147483647).