[Development] Virtual hook in qobject?
Volker Hilsheimer
volker.hilsheimer at qt.io
Fri Sep 11 12:44:09 CEST 2020
> On 11 Sep 2020, at 12:37, Allan Sandfeld Jensen <kde at carewolf.com> wrote:
>
> Should we add a generic virtual hook in qobject, so any qobject can expand
> their with effectively virtual functions in Qt6?
>
> I imagine something like QVariant QObject::virtual_hook(int id, QVariant
> args);
>
> Or do we already have other useful work-arounds for this common problem?
>
> Best regards
> ‘Allan
We have that already. It’s called qt_metacall :)
Cheers,
Volker
More information about the Development
mailing list