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

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

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes