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.
我试图让一个 QSpinBox 仅在它从焦点变为非焦点时发送新值,这样它就不会在每次用户更改数字时发送更新。
目前它看起来像这样
self.specificBox.valueChanged.connect(self.setspecificValue)
我试图将其更改为
self.specificBox.editingFinished.connect(self.setspecificValue)
但这没有用
知道如何解决这个问题吗?