Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83107

Add leading characters to QLCDNumber

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Do
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.12
    • None
    • All

      So strange it was not implemented yet. It is mandatory needed in huge amount of applications. Just add QChar field "leading character". When the digitCount is set to N and value is n length - then all leading N-n empty places without digits are filled with this character. It can be '0' with result like "0001" (digitCount=5) ot '-' with result like "–32" (digitcount=4) or else. By default it is space character with current behavior.

      Internally this is just add line inside QLCDNumber:

      QString("%1").arg(value, digtitCount, base, QChar(fillingChar)) ;
      

      and add property fillingChar.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            gourmand64 Gourmet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes