Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenquan/bdfed383374a338bc8591fa95dbe902d to your computer and use it in GitHub Desktop.
Save stephenquan/bdfed383374a338bc8591fa95dbe902d to your computer and use it in GitHub Desktop.
AppStudio_20190703_IntValidatorTest.qml
import QtQuick 2.12
import QtQuick.Controls 2.5
TextField {
validator: IntValidator {
bottom: 25
top: 75
}
placeholderText: qsTr("Type in an integer between 25 and 75")
text: "34"
color: acceptableInput ? "green" : "red"
selectByMouse: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment