API: Change render flags to direct methods


Render flags type of API is suitable when settings are done e.g. in
constructor. But as these have become per-path features, flags are
less suitable and feel out of place compared to other APIs. Also,
flags are not optimal for JavaScript API and we would want to have
these features, with a similar API, available also for Canvas2D.

So change the render flags to be private implementation detail and
add direct setter methods instead. Flags are only kept on renderer
side as they should. Also, remove separate antialiasing
enable/disable and use setAntialias(0) for disabling instead to
keep the API simpler to use.

Pick-to: 6.12
Task-number: QTBUG-147052
Change-Id: Iab1327766b9d77533f51bb0d2094e3ba5e04650b
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
commit7770d85d5e72e21848f0d0a1b03a72b195143da5
parenta01707c7bbaf46b3c2fde67ea13696bbe6b01e5c
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeThu, 4 Jun 2026 12:27:50 +0000