title: Signals in Pyside6
body: <p>I can't figure out why the signals don't work. In PyQt5, this code worked (the difference was that instead of Signal, it was pyqtSignal).</p>
  <p>When you click on the button, TextEdit should display the message &quot;connecting to the device&quot;, if you replace pyside with pyqt, the code will work as it should</p>
  <pre><code>import sys
  from PySide6.QtCore import *
  from PySide6.QtWidgets import *
  
  
  class Ui_MainWindow(object):
      def setupUi(self, MainWindow):
          if not MainWindow.objectName():
              MainWindow.setObjectName(u&quot;MainWindow&quot;)
          MainWindow.resize(188, 267)
          self.centralwidget = QWidget(MainWindow)
          self.centralwidget.setObjectName(u&quot;centralwidget&quot;)
          self.pushButton = QPushButton(self.centralwidget)
          self.pushButton.setObjectName(u&quot;pushButton&quot;)
          self.pushButton.setGeometry(QRect(50, 140, 75, 24))
          self.textEdit = QTextEdit(self.centralwidget)
          self.textEdit.setObjectName(u&quot;textEdit&quot;)
          self.textEdit.setGeometry(QRect(30, 40, 104, 71))
          MainWindow.setCentralWidget(self.centralwidget)
          self.retranslateUi(MainWindow)
          QMetaObject.connectSlotsByName(MainWindow)
      def retranslateUi(self, MainWindow):
          MainWindow.setWindowTitle(QCoreApplication.translate(&quot;MainWindow&quot;, u&quot;MainWindow&quot;, None))
          self.pushButton.setText(QCoreApplication.translate(&quot;MainWindow&quot;, u&quot;PushButton&quot;, None))
  
  class MainWindow(QMainWindow):
      def __init__(self):
          QMainWindow.__init__(self, parent=None)
          self.dragPos = None
          self.ui = Ui_MainWindow()
          self.ui.setupUi(self)
          self.show()
  
  def update_text(value, textEdit):
      textEdit.setText(textEdit.toPlainText() + value)
      textEdit.verticalScrollBar().setValue(textEdit.verticalScrollBar().maximum())
  class account(QThread):
      textUpdate = Signal(str, QTextEdit)
  
      def __init__(self):
          super().__init__(parent=None)
          self.textUpdate.connect(update_text)
  
      def run(self):
          print(&quot;thread is work&quot;)
          self.textUpdate.emit(&quot;Connect to device\n&quot;, ui.textEdit)
          
  if __name__ == &quot;__main__&quot;:
      app = QApplication()
      acc_instance = account()
      main = MainWindow()
      ui = main.ui
      ui.pushButton.clicked.connect(acc_instance.start)
      sys.exit(app.exec_())
  </code></pre>
  <p>P.S. I know that override run method is incorrect.</p>
  <p>P.S.S Added a small example</p>