Categories
What are slots for in pyqt5?
Can you give an example why slots are needed in pyqt5? @pyqtSlot()
@pyqtSlot()
Answer the question
In order to leave comments, you need to log in
in order to receive signals
A slot can be any function.method. But using a decorator explicitly marks the method as a slot, which allows Qt to create entities for the slot. Slightly reduces memory consumption and slightly speeds up slots. tyts
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question