PDA

View Full Version : PyQt4 Signal to PyQt5 Signal Convert?



mthnzbk
12th September 2015, 22:28
self.emit(SIGNAL("selectedInfoChanged(int, QString, int, QString)"), packages, packagesSize, extraPackages, extraPackagesSize)
self.emit(SIGNAL("selectedInfoChanged(QString)"), unicode(e))

pyqt5 also how I do it? Sorry, my English is weak.

ChrisW67
13th September 2015, 03:58
something like


self.selectedInfoChanged.emit(value)

mthnzbk
13th September 2015, 13:50
selectedInfoChanged = pyqtSignal() # ???

Unclear how many will take the argument?

ChrisW67
13th September 2015, 22:38
I expect no arguments.

For your four argument signal


selectedInfoChanged = pyqtSignal(int,str,int,str)

http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#