Qt World Summit: Submit your Presentation

Limiting TextEdits

  • Hey, I'm designing something where someone needs to enter numbers for data entering, and I want it so that there is a limit to how big or small of a number they enter. Currently, I am using "inputMethodHints: Qt.ImhFormattedNumbersOnly" in order to make it so that only numbers are enterable into a text edit. Is there a way to make it so that this text edit only takes in a certain range of number? If not, is there something better to use that would allow for someone to type any number from a range of numbers?

    Thanks in advance!

  • Moderators

    the TextInput element has a validator property

Log in to reply