rogue example modernization
Use 'auto' where appropriate.
Use constexprs instead of defines for WIDTH/HEIGHT.
Use inline class member initializations, update the documentation
accordingly.
Use QT_FORWARD_DECLARE_CLASS for Qt classes.
Use clang-format to reformat the code in some places.
Use std::hypot() for distance calculation.
Use per-class includes and sort them.
Pick-to: 6.5
Task-number: QTBUG-111448
Change-Id: I52d67fa63e53ce598200067bb283139e5bf9be4b
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>