Register connection types explicitly if not already registered


Follows up on qtbase:b0f495735c30e400c9749c8b9f9823dbb56dfbd9, which
removed the implicit metatype registration of QObject pointers and
gadgets.

If we have arguments but get no type IDs, fall back to an explicit
registration of the types via QMetaType::fromType(), which we can use
here.

Pick-to: 6.12
Change-Id: I7a534f219988bc008492065892f1ae8bf38fd7e6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commit3550d22da67ab828ad83f18621882aaeb853f256
parentfe7b13d004c0177b08c490011d512600257e155e
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeMon, 6 Jul 2026 17:23:32 +0000