PySide2 Signal with named parameter
Clash Royale CLAN TAG #URR8PPP PySide2 Signal with named parameter I am trying to replicate below example using PySide2. https://evileg.com/en/post/242/ But as PySide2 doesn't support emitting a Signal with named parameter to QML, i have no clue about how to do this using PySide2 ? Here is my code main.py from PySide2.QtGui import QGuiApplication from PySide2.QtQml import QQmlApplicationEngine from PySide2.QtCore import QObject, Signal, Slot, Property class Calculator(QObject): def __init__(self): QObject.__init__(self) sumResult = Signal(int) subResult = Signal(int) @Slot(int, int) def sum(self, arg1, arg2): self.sumResult.emit(arg1 + arg2) @Slot(int, int) def sub(self, arg1, arg2): self.subResult.emit(arg1 - arg2) if __name__ == "__main__": import sys app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() calculator = Calculator() engine.rootContext().setContextProperty("calculator...