Handle Vulkan failure properly in compacthealth example


It is supposed to fall back to OpenGL, even the example docs say so,
when Vulkan is not usable at run time.

It was not fully functional. Fix it.

Fixes: QTBUG-143321
Pick-to: 6.12
Change-Id: Id8273a0d86e4852f5afb95991efa9309875c4973
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commitfd65672b5909b7b2c8a571a3506b53f8769557a3
parent7379caf218f3962cb254d2b0211bed205c16cd77
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeWed, 2 Sep 2026 10:54:36 +0000