Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Textfield validator.
Forum Updated to NodeBB v4.3 + New Features

Textfield validator.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 659 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eswar
    wrote on last edited by
    #1

    Hi

    In that textfield, i need signal for entering invalid value or skipped by validator.

    For Ex:

    Textfield{
    id:intvalue
    placeholderText: 'value'
    validator: IntValidator {bottom: 0; top: 9;}
    }
    if i enter first digit in number, it will accept and displayed in textfied. if I enter second digit, the validator skip second digit. I need signal for skipped value in the validator.

    Any signal is available for validator skipped values?

    m.sueM 1 Reply Last reply
    0
    • E eswar

      Hi

      In that textfield, i need signal for entering invalid value or skipped by validator.

      For Ex:

      Textfield{
      id:intvalue
      placeholderText: 'value'
      validator: IntValidator {bottom: 0; top: 9;}
      }
      if i enter first digit in number, it will accept and displayed in textfied. if I enter second digit, the validator skip second digit. I need signal for skipped value in the validator.

      Any signal is available for validator skipped values?

      m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi @eswar

      the documentation does not mention any signals concerning validation, just virtual functions. E.g. using validate you could implement your own signals. How to make them available in QML is another topic, though.

      -Michael.

      E 1 Reply Last reply
      1
      • m.sueM m.sue

        Hi @eswar

        the documentation does not mention any signals concerning validation, just virtual functions. E.g. using validate you could implement your own signals. How to make them available in QML is another topic, though.

        -Michael.

        E Offline
        E Offline
        eswar
        wrote on last edited by
        #3

        @m-sue Hi

        thank you for your reply.

        How can i implement own signal in validator? I can't get your point.
        Any other possible solution or methods to implement this logic?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved