title: QML text doesn't update unless I resize window
body: <p>I have the following Python code</p>
  <pre><code>import sys
  import os
  import threading
  from time import sleep
  
  from PySide2.QtCore import QObject
  from PySide2.QtGui import QGuiApplication
  from PySide2.QtQml import QQmlApplicationEngine
  
  
  def add_text(log_text):
      i = 1
      while True:
          text = log_text.property(&quot;text&quot;)
          log_text.setProperty(&quot;text&quot;, text + &quot;\n&quot; + str(i))
          i += 1
          sleep(1)
  
  
  app = QGuiApplication(sys.argv)
  engine = QQmlApplicationEngine()
  engine.load(os.path.join(os.path.dirname(__file__), &quot;main.qml&quot;))
  
  root = engine.rootObjects()[0]
  log_text = root.findChild(QObject, 'log_text')
  x = threading.Thread(target=add_text, args=(log_text,))
  x.start()
  
  if not engine.rootObjects():
      sys.exit(-1)
  sys.exit(app.exec_())
  </code></pre>
  <p>And the following QML file</p>
  <pre><code>import QtQuick 2.13
  import QtQuick.Window 2.13
  import QtQuick.Layouts 1.15
  import QtQuick.Controls 2.13
  
  
  Window {
      width: 640
      height: 480
      visible: true
      title: qsTr(&quot;Hello World&quot;)
  
      RowLayout {
          id: main_row
          anchors.fill: parent
          spacing: 0
  
          Rectangle {
              id: log_background
              width: 250
              height: 480
              color: &quot;#515151&quot;
              Layout.fillHeight: true
  
              Text {
                  id: log_text
                  objectName: &quot;log_text&quot;
                  color: &quot;#ffffff&quot;
                  anchors.fill: parent
                  font.pixelSize: 12
                  verticalAlignment: Text.AlignBottom
              }
          }
  
          ColumnLayout {
              id: image_buttons_column
              width: 100
              height: 100
              spacing: 0
  
              Image {
                  id: image
                  width: 504
                  height: 429
                  source: &quot;qrc:/qtquickplugin/images/template_image.png&quot;
                  Layout.fillHeight: true
                  Layout.fillWidth: true
                  cache: true
                  smooth: true
                  mirror: false
                  mipmap: false
                  autoTransform: false
                  asynchronous: false
                  fillMode: Image.PreserveAspectFit
              }
  
              RowLayout {
                  id: buttons_row
                  width: 100
                  height: 100
                  spacing: 0
  
                  Button {
                      id: button_yes
                      objectName: &quot;button_yes&quot;
                      Layout.fillWidth: true
                      palette {
                          button: &quot;#64e764&quot;
                      }
                      font.pointSize: 16
                      text: &quot;Yes&quot;
                      signal pressed
                      onClicked: pressed()
                  }
                  Button {
                      id: button_maybe
                      objectName: &quot;button_maybe&quot;
                      Layout.fillWidth: true
                      palette {
                          button: &quot;#ffff00&quot;
                      }
                      font.pointSize: 16
                      text: &quot;Maybe&quot;
                      signal pressed
                      onClicked: pressed()
                  }
                  Button {
                      id: button_no
                      objectName: &quot;button_no&quot;
                      Layout.fillWidth: true
                      palette {
                          button: &quot;#ff726f&quot;
                      }
                      font.pointSize: 16
                      text: &quot;No&quot;
                      signal pressed
                      onClicked: pressed()
                  }
              }
          }
      }
  }
  </code></pre>
  <p>When I run the above python script, the text updates itself once, showing the number 1 and then stops. Whenever I resize the window, all of the numbers that should've been added suddenly show up as they should. How can I get the text area to update itself whenever the text is changed instead of whenever the window has been resized?</p>