Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Disable spaces in text field?
Forum Updated to NodeBB v4.3 + New Features

Disable spaces in text field?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 519 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.
  • L Offline
    L Offline
    Ldweller
    wrote on last edited by
    #1

    Hey,
    I have had issues with an e-mail login form - which when I auto fill the word I have a space added onto the end and receive the error "Badly formatted e-mail address".

    Is there a way I can remove the ability to have spaces in that particular text field so this issue wouldn't occur for my users?

    K 1 Reply Last reply
    0
    • L Ldweller

      Hey,
      I have had issues with an e-mail login form - which when I auto fill the word I have a space added onto the end and receive the error "Badly formatted e-mail address".

      Is there a way I can remove the ability to have spaces in that particular text field so this issue wouldn't occur for my users?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Ldweller

      Hi and welcome to devnet forum

      Different QValidator can help to limit the input possibilities for fields. In particular QRegularExpressionValidator is suitable in your case.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      5

      • Login

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