<div dir="ltr">i have as follow and in the label i never read the text:<div>if i comment the
self.label_10.installEventFilter(self) i read the text</div><div>Any suggestion<br><div>class Form(QWidget, Ui_Form):<br> """<br> Class documentation goes here.<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(Form, self).__init__(parent)<br> self.setupUi(self)<br> self.controllo_stato = True<br> self.timer = QTimer()<br> self.timer.timeout.connect(self.leggo)<br> self.fun = ctypes.WinDLL('C:\Kvara\Exe\KvCom3x.dll')<br> self.fun_one = ctypes.WinDLL('C:\Kvara\Exe\ErrorHand.dll')</div><div> self.label_10.setText('testlabel')<br> self.label_10.installEventFilter(self)</div><div><br></div><div>def eventFilter(self, object, event):<br> if event.type() == QEvent.HoverLeave:<br> print('a')<br> if event.type() == QEvent.HoverEnter:<br> print('b')<br> if event.type() == QEvent.HoverMove:<br> print('c')<br> print('evento')<br> return 1</div><div><br></div><div><br><div><br><div><br></div></div></div></div></div>