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

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • 5.11.2, 5.12.0
    • PySide
    • None
    • macOS 10.14.1, python 3.6.6, PySide2-5.11.2
    • macOS

      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. 

        1. bugreport_720p.mov
          2.28 MB
          Gilbert Duivesteijn
        2. textedit.py
          0.8 kB
          Jeremy Katz
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            treblig Gilbert Duivesteijn
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes