DoubleValidator QML Element

实例化: QDoubleValidator

特性

详细描述

This element provides a validator for non-integer numbers.

特性文档编制

bottom : real

This property holds the validator's minimum acceptable value. By default, this property contains a value of -infinity.

decimals : int

This property holds the validator's maximum number of digits after the decimal point. By default, this property contains a value of 1000.

notation : enumeration

This property holds the notation of how a string can describe a number.

The possible values for this property are:

若把此特性设为 DoubleValidator .ScientificNotation, the written number may have an exponent part (e.g. 1.5E-2).

top : real

This property holds the validator's maximum acceptable value. By default, this property contains a value of infinity.