[Development] Should QObject::event() be protected or public?
Christian Kandeler
christian.kandeler at qt.io
Fri Mar 15 18:31:33 CET 2024
On 3/15/24 18:09, Marc Mutz via Development wrote:
> I like simple rules. "Overrides should have the same access level as the
> initial virtual function." is a simple rule.
But it makes no sense in general. The base class is the interface, and
overrides should have the least possible visibility for their purpose.
Christian
More information about the Development
mailing list