Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLineEdit and mask!!! Why such problems...
Qt 6.12 LTS is out! See what's new in the release blog

QLineEdit and mask!!! Why such problems...

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

    Guys....

    I really can't understand this masks... below the mask and example problems:

    @
    Mask: R$ 9999,99;9
    Problem Example: Type R$ 0099,00 and then the .text() return "R$ 0000,00";
    @

    @
    Mask: R$ 9999,99;0
    Problem Example: Type R$ 0100,00 and then the .text() return "R$ 0001,00";
    Problem Example: Type R$ 0090,00 and then the .text() return "R$ 0009,00";
    @

    @
    Mask: R$ 0000,00;0
    Problem Example: Type R$ 0100,00 and then the .text() return "R$ 0001,00";
    @

    @
    Mask: R$ 0000,00;9
    Problem Example: Type R$ 0009,00 and then the .text() return "R$ 0000,00";
    @

    I Still working on that to understand the problem...
    Any secret on this "simple" thing?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dcbasso
      wrote on last edited by
      #2

      At this right moment i check that the

      @
      mask: R$ 9999,99;#
      @

      is the best option!

      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
      • Unsolved