import sys from PySide2.QtWidgets import QApplication, QWidget, QVBoxLayout, QLineEdit, QLabel from PySide2 import QtCore app = QApplication(sys.argv) hello_line_edit = QLineEdit() world_label = QLabel("") layout = QVBoxLayout() layout.addWidget(hello_line_edit) layout.addWidget(world_label) hello_line_edit.connect(QtCore.SIGNAL('textChanged(QString)'), world_label, QtCore.SLOT('setText(QString)')) #QtCore.QObject.connect(hello_line_edit, QtCore.SIGNAL('textChanged(QString)'), world_label, QtCore.SLOT('setText(QString)')) window = QWidget() window.setLayout(layout) window.resize(200, 200) window.show() sys.exit(app.exec_())