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



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



  • At this right moment i check that the

    @
    mask: R$ 9999,99;#
    @

    is the best option!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.