# class KDoubleValidator

###

Module | kdeui
Namespace |
Class | KDoubleValidator
Inherits | QDoubleValidator

### methods

- KDoubleValidator (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject |

  Constuct a locale-aware KDoubleValidator with default range (whatever QDoubleValidator uses for that) and parent @p parent

- KDoubleValidator (bottom, top, decimals, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  bottom | double |
  top | double |
  decimals | int |
  parent | QObject |

  Constuct a locale-aware KDoubleValidator for range [@p bottom,@p top] and a precision of decimals decimals after the decimal point.

- KDoubleValidator (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |

- acceptLocalizedNumbers ( )

  returns bool

  Returns whether localized numbers are accepted (default: true)

- setAcceptLocalizedNumbers (accept)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  accept | bool |

  Sets whether to accept localized numbers (default: true)

- validate (input, pos)

  returns QValidator.State

  Argument | Type | Default
  --- | --- | ---
  input | QString |
  pos | int |

  Overloaded for internal reasons. The API is not affected.