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

QTextEdit does not show leftmost char after wordwrap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.6.2, 5.5.1
    • GUI: Text handling
    • None
    • libqt4-x11-4.6.2-105.1.i586; openSuse 11.2

      Distribution: KDE:Qt55 / openSUSE_13.2
      Name : libQt5Widgets5
      Version : 5.5.1
      Release : 100.1

    Description

      Having a QTextEdit
      QTextEdit *e = new QTextEdit(0);
      e->setWordWrapMode(QTextOption::WordWrap);
      and I enter a long line so that a horizontal scrollbar is shown (e.g. press and hold a letter), then enter some spaces, then enter "abc".
      The widget will do a word wrap and print "abc" in the second line, but the viewport is a little shifted to the right so what you see in the second
      line is not "abc" but "bc" or a fragment of "a".

      P.S:The same problem exists when using a Q3TextEdit

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mkoller Martin Koller
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes