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

QTextEdit : setLeftMargin : cursor issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • 4.8.3, 5.0.0
    • 4.8.0, 4.8.1
    • GUI: Text handling
    • None

    Description

      It seems that a big bug is there (tested on Qt 4.8.0 and Qt 4.8.1)

      here is code to test:

      QTextEdit *editor = new QTextEdit();
      QTextCursor cursor(editor->textCursor());
      QTextBlockFormat blockFormat = cursor.blockFormat();
      blockFormat.setLeftMargin(150);
      cursor.setBlockFormat(blockFormat);
      for (int i=0; i<100; i++) cursor.insertText("aaa aaaa ");

      The cursor can't go on the right part of the text (150 pixels from the right side of the textedit), using arrow keys or mouse gives the same result.

      i've built my project with Qt 4.7.4, the bug is not there
      it's only in 4.8.0 and 4.8.1 it seems

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            mkdotcom mkdotcom
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes