[Development] Should QObject::event() be protected or public?
Marc Mutz
marc.mutz at qt.io
Sat Mar 16 15:00:17 CET 2024
On 16.03.24 01:47, Konstantin Shegunov wrote:
> On Fri, Mar 15, 2024 at 10:48 PM Marc Mutz via Development
> <development at qt-project.org <mailto:development at qt-project.org>> wrote:
>
> The member variable thing sounds very wrong. I'd be surprised if it
^^^^^^^^
> compiled.
[...]
> struct A
> {
> int foo(int);
> };
> struct B
> {
> double foo(double);
> };
> struct C : A, B
> {
> using A::foo;
> using B::foo;
> };
>
> Which allows C to have `foo()` properly overloaded.
Function != variable ;-)
--
Marc Mutz <marc.mutz at qt.io>
Principal Software Engineer
The Qt Company
Erich-Thilo-Str. 10 12489
Berlin, Germany
www.qt.io
Geschäftsführer: Mika Pälsi, Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin,
Registergericht: Amtsgericht Charlottenburg,
HRB 144331 B
More information about the Development
mailing list