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

Editiable QGraphicsTextItem problem when setting pageSize

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.1, 5.7.0, 5.12.0
    • Fix Version/s: 5.12.1
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Environment:
      Debian Jessie/Stretch
    • Commits:
      0088f760439b4f6f98342d3e22ecadbb13aaf06a (qt/qtbase/5.12)

      Description

      When setting the pageSize on the QTextDocument of a QGraphicsTextItem, the contents of the QGraphicsTextItem is shown as in a document view. However, the last visible lines in the document become non-editable. I can't place the cursor or select that text with the mouse. Also the selection border disappears when clicking on those lines. When moving the textCursor with the keyboard to those lines, the textCursor is no longer shown/redrawn.

      After going through the source code it seems to me that the pageSize.height causes the problem.

        Attachments

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

          Activity

            People

            • Assignee:
              vitaly.fanaskov Vitaly Fanaskov
              Reporter:
              jan-willem Jan-Willem van der Veen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes