#signals-and-slots

[ follow ]
Python
fromPython GUIs
2 days ago

What does @pyqtSlot() do?

Use @pyqtSlot to create native Qt slots for threaded contexts and to reduce memory usage and slightly improve performance; otherwise plain Python callables work.
Python
fromPython GUIs
8 months ago

What does @Slot() do?

The @Slot decorator in PySide6 marks Python methods as slots for Qt signals, offering performance benefits.
Omitting @Slot means any callable can still be a slot but lacks certain optimizations.
[ Load more ]