<div dir="ltr">Hello i have a question about thread management<div><br></div><div>In my project i have  define a class </div><div><br></div><div>Class Read(QObject):</div><div> def __init__(self, parent=None):<br>        super().__init__(parent=None)<br><br>        self.timer_leggo_x_y =QTimer()<br>        self.timer_leggo_x_y.timeout.connect(self.leggo_x_y)<br>        self.timer_leggo_x_y.start(250)</div><div> def leggo_x_y(self):</div><div>       variable = self.reader_v.read()</div><div>       self.lineEdit.setText(variable)  </div><div><br></div><div><br></div>class Form(QWidget, Ui_Form):<br>    """<br>    Class documentation goes here.<br>    """<br><br>    def __init__(self, parent=None):<br>        """<br>        Constructor<br><br>        @param parent reference to the parent widget (defaults to None)<br>        @type QWidget (optional)<br>        """<br>         super().__init__(parent)<br>        self.setupUi(self)<br><div>        self.tableWidget.setRowCount(200)...........</div><div>        self.reader = .............</div><div>        self.read_pos = Read()</div>        self.read_pos_thread = QThread()<br>        self.read_pos.moveToThread(self.read_pos_thread)<div>        self.read_pos.reader_v = self.reader</div><div>         self.read_pos.lineEdit = self.lineEdit</div><div><br></div><div><br></div><div>My question is in order to allow speed and never have latency on the widgets is better to add a signal in the Class Read and connect it to a def in the Class Form and then fill the lineEdit directly in the Class Form or leave as it is?</div><div><br></div><div>Thanks for your reply</div><div> <br><div>         </div></div></div>