PySide: Returning a value from a slot

后端 未结 2 1692
执念已碎
执念已碎 2021-01-19 14:40

The Pyside documentation states that slots can have return values, but I have yet to figure out how make it do so.

I couldn\'t find any usable code samples on this,

2条回答
  •  忘掉有多难
    2021-01-19 15:19

    Perhaps you may "inject" whatever you want to return from testSlot function into a property of the class where the signal is emmited

提交回复
热议问题