Results 1 to 8 of 8

Thread: QLineEdit and input mask

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    Hawaii
    Posts
    130
    Thanks
    48
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QLineEdit and input mask

    I see whats happening now, when I put the mask as "99999;_" I could see the "_" character where the spaces were, so when theres an input mask, it positions the cursor wherever you click on the field, rather than at the right as if it was an empty field.

    So I will try a validator on the field instead.

  2. #2
    Join Date
    May 2014
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: QLineEdit and input mask

    Might be a late answer, but
    Qt Code:
    1. lineEdit->setCursorPosition(0)
    To copy to clipboard, switch view to plain text mode 
    worked fine for me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.