Pyqt5 Converting Signal Code From Pyqt4 January 14, 2024 Post a Comment I'm a newbie and am having difficulty changing a line of code from PyQT4 to PyQT5, its to do with signals & slots. I suspect its because arguments are being passed to the sloSolution 1: The new syntax is as follows:sender.signal.connect(some_slot) CopyIn your case:self.assetView.selectionModel().currentRowChanged.connect(self.assetChanged) # ^^^^^^^^^sender^^^^^^^^ ^^^^signal^^^^ ^^^^^^slot^^^^^^CopyanddefassetChanged(self, current, previous): print(current, previous) Copy Share Post a Comment for "Pyqt5 Converting Signal Code From Pyqt4"
Post a Comment for "Pyqt5 Converting Signal Code From Pyqt4"