QPA: avoid ordering comparisons for application states


Check state membership explicitly instead of comparing enum
values. Preserve exposure for Active and Inactive and hide
native views for Hidden and Suspended. Treat every non-Active
state as a dispatcher stop request on Android and OHOS.

Pick-to: 6.12
Change-Id: I69c27db048b48e26debdc08f766e5c76d7306e88
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Reviewed-by: SanthoshKumar Selvaraj <santhosh.kumar.selvaraj@qt.io>
commit11b151279fbefbbdd205664503b4d1f13cea50d8
parent79459ab681989d53d3cc187e4ee6921fea52f8a8
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeWed, 21 Oct 2026 22:18:47 +0000