[Development] Should QObject::event() be protected or public?

Thiago Macieira thiago.macieira at intel.com
Fri Mar 15 19:03:19 CET 2024


On Friday, 15 March 2024 10:09:31 PDT 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.

Amend that to "... unless there's an explicit reason not to". With that, I'm 
ok. As you can still access by casting to a base, that had better be a good 
reason.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240315/1ff3f718/attachment-0001.bin>


More information about the Development mailing list