Declaring slots as private means that you cannot refer to them from the context in which they are private, like any other method. Therefore, you cannot pass the address of the private slots to connect .
If you declare a signal and slot as private, you say that only this class can control then.
In addition, other answers are also mentioned:
- you can still connect private signals and slots from the outside using tricks
- signals and slots are empty macros and do not violate the locale
Euri Pinhollow Feb 23 '17 at 19:29 2017-02-23 19:29
source share