Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
IntValidator accepts out-of-range 0 ?
-
Shouldn't zero not get validated in this case?
@
import QtQuick 2.1
import QtQuick.Controls 1.0TextField {
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