IntValidator accepts out-of-range 0 ?

  • Shouldn't zero not get validated in this case?
    import QtQuick 2.1
    import QtQuick.Controls 1.0

    TextField {
    validator: IntValidator {
    locale: "en-US"
    bottom: 1
    top: 5
    onTextChanged: console.log(text)

  • I see now, in c++ qt this would produce an intermediate result, in the case of leading-zeros

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.