Port away from Qt::Core5Compat when using Qt 6.7 or newer

This is yet another version of !1600 (closed) or !1717 (closed), but applicable now and not stuck in draft state.

Merge request reports

Loading