Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
讨论信号和槽的PySide 文档给出了信号str和int类型的示例。如果您希望信号是元组中的一对整数,您会怎么做?
str
int
你应该可以object用来传递一个元组。
object
例如:
signal = Signal(object) signal.connect(...) signal.emit(tuple)