utils: Get closest match from list of supported resolutions


Add a helper to get the closest resolution matching a requested one from
a list of supported resolutions.

Task-number: QTBUG-149925
Pick-to: 6.12
Change-Id: Ic50f65c2353e0533c90b74e437747fc5a0806629
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
commit2f98e59643a13266471b2ba189f719c0e6968f44
parent706595edb43744bb3b4dc34cd88573ea00fc221e
authorMikko Hallamaa <mikko.hallamaa@qt.io>
committerMikko Hallamaa <mikko.hallamaa@qt.io>
commit timeThu, 8 Oct 2026 15:27:01 +0000