Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-871

macOS: QtWidgets.QTextEdit.append() does not repaint the widget in pyside2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.2, 5.12.0
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      macOS 10.14.1, python 3.6.6, PySide2-5.11.2

      Description

      When I use QtWidgets.QTextEdit.append() in pyside2, the widget gets not repainted and the appended text is invisible. The appended text becomes visible again when e.g. selecting all text in the edit pane.

       

      When creating the exact same code in C++, all works as expected. To demonstrate the issue, I've created a project in C++ and Python, using the same mainwindow.ui file from the QtDesigner. The git repo can be found here:

      https://github.com/gilbertfrancois/qt-app-template

      Attached is a video to demonstrate the issue. 

        Attachments

        1. bugreport_720p.mov
          2.28 MB
        2. textedit.py
          0.8 kB

          Issue Links

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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              treblig Gilbert Duivesteijn
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes