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

Allow custom characters for QTextOption ShowTabsAndSpaces

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • GUI: Text handling
    • Windows 7 Professional, SP1
      Spyder IDE
      Python 3.4
      PyQt4

    Description

      Summary

      Allow custom characters for QTextOption ShowTabsAndSpaces.

      Details

      The current characters, (middle dot · 0x00B7 and rightwards arrow 0x2192) are OK for denoting spaces and tabs. However, in some fonts, these characters are a little too pronounced, too visually distracting.

      This suggestion is to allow the programmer to set the characters to something else instead of hard-coding the characters in qtextlayout.cpp.

      I believe that this would allow for nice, custom-looking Qt-based text editors.

      You can see my original StackOverflow question on this topic here:
      http://stackoverflow.com/q/30179676/1354930

      Attached Items

      The attached image is how these dots look in the Spyder (Python) IDE which uses PyQt4 and the Consolas font. In my opinion, these middle dot characters are too big and I'd prefer to use something like 0x02D1 ˑ.

      Related QT Issues

      This request is related to issue # QTBUG-11144 (make the pen color configurable for ShowTabsAndSpaces) as it also pertains to the display of these characters.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            dougthor42 Douglas Thor
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes