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

Horizontal scroll issues in QPlainTextEdit with right-aligned text and no line wrap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.6, 6.2.3, 6.3.0
    • GUI: Text handling
    • None
    • All

    Description

      If you have a QPlainTextEdit with right-aligned text (set via default text option on its document) and no line wrap, then horizontal scrolling misbehaves. All the scroll space is added to the right as a margin and the text is cropped by the left. See attached screenshots to understand it better.

      I have attached a basic example code that allows to reproduce the problem.

      I have reproduced the problem with the cited Qt versions but I would bet it is reproducible also with newer versions.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            marc.ruiz Marc Ruiz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes