[PySide] What if a slot is not decorated with @Slot()?
Cristian.Maureira-Fredes at qt.io
Wed Nov 16 10:55:42 CET 2022
The answer can be found in
The main idea is to register Slots (and signals) at parsing time,
before the connection is done.
An old issue can be find here:
with some discussion as well.
I hope that helps,
On 11/16/22 06:47, Zhao Lee wrote:
> The doc says
> It is really important to decorate each method declaration with a
> @Slot(), in that way PySide6 knows internally how to register them
> into Qt.
> But the method used as the slot works well even without the @Slot()
> decorator , I wonder if there is a risk in doing so.
> PySide mailing list
> PySide at qt-project.org
Dr. Cristian Maureira-Fredes
Senior R&D Manager
The Qt Company GmbH
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin,
Charlottenburg, HRB 144331 B
More information about the PySide