Fix returning QAxServer objects from methods


A QVariant initialized from a QMetaType is valid, but null, so in case
of pointer return types we didn't update the QVariant that would then be
written back into the return value.

Always write back if we have previously recognized that we are dealing
with a pointer return type, indicated by argv[0] pointing at the
argv_pointer array.

Task-number: QTBUG-106024
Pick-to: 6.4
Change-Id: Ic1bd258b006746e0233c09fe68842bdeefdfc84f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
commit201d40e4daafa7fd6f2d8f4237f393847550052d
parentf735057e8b5b92f8b744a1d8d22e2c5e355ee20f
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeFri, 21 Oct 2022 06:44:02 +0000