Block signals while the meta object gets created


If a COM object emits events and calls QAxEventSink::Invoke while the
metaobject is getting constructed, then we might end up with accessing
incomplete initialized meta object data when mapping the Invoke call to
the corresponding Qt signal.

Use a QSignalBlocker while we are generating the meta object, so that
the QAxEventSink::Invoke and OnChanged implementations exit early.

Pick-to: 6.6 6.5 5.15
Fixes: QTBUG-100657
Fixes: QTBUG-96871
Change-Id: If9368ee878bbe56e2fb61ce251383841191b3a6d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Reviewed-by: Pavel Dubsky <pavel.dubsky@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Wladimir Leuschner <wladimir.leuschner@qt.io>
commit690770d8e6c61b8e3834a19e95e3fd816f842182
parentecbaf89024f8517b719fe4db0f49cc928edccd16
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeFri, 22 Sep 2023 10:25:08 +0200