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

QTextEdit::append should get an additional color or charFormat param

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.10.1, 5.11.1
    • GUI: Text handling
    • None
    • Windows

    Description

      I stumbled upon a use case where i would like to add text in a new color at the end of my document without losing or repainting my selection or scrolling in case of isBottom.

      This is basically what append does. But if i want to change my new textcolor with setTextColor I repaint my selection.

      My suggestion is to add a param to the append function so that we can choose a new charformat directly.

      On another note: The append function should get an option to skip the insertBlock so that one can conveniently use it to insert text without newline at the end of the document without having to add a lot of code to emulate the append behaviour.

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              megamouse Patrick Waldner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes