Qt "private slots:" what is this?
AFAIK @Andrew's answer to the question above addresses the point. And @borges mentions the important detail
When the method is called via signal/slot mechanism, the access specifiers are ignored. But slots are also "normal" methods. When you call them using the traditional way, the access specifiers are considered
So I'm leaning towards write slots as private, in principle. And only mark them as public when the expectation is to also call them in a non connect context, I mean a direct call.
In other works, that will be like prefer private slots. However, I don't record having seen this kind of mentality on Qt's documentation. They seem to just use public slots
everywhere. Am I missing something?
Does anything change when we do multithreading and a method (slot) might be called in an object which is in another thread?