tests: introduce QMessageSpy / QLoggingCategoryEnabler


QMessageSpy allows us to intercept messages from qt's logging framework.
QLoggingCategoryEnabler can enable all tracing / restore it on exit.

Pick-to: 6.12
Change-Id: Ifdcb705a10a605c0a787a92c5e344ce10acca8e8
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit0fa0173a188aadeaf5479f2994f3fbd04692a22b
parentdd0c949a36bd58e7021d6e04ef5cd7f052acc6ab
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeWed, 19 Aug 2026 01:08:25 +0000