Add baseline test for the (QML) Canvas2D item


Based heavily on qtdeclarative's and qtquick3d's scenegrabber
tools and baseline tests.

The only difference is that as with the canvaspainting test,
commenting out the USE_SERVER define will make the test save
all test results into png files instead of attempting to connect
to the server.

Alternatively, use the -viewonly option of the scenegrabber to
debug individual test cases, although as of now launching them
via the qml tool works too.

One test case currently, the flower. Other tests can be added as
.qml files under 'data' (an under subdirectories in there).
Root item, and so screenshot, sizes should be kept low.

Task-number: QTBUG-146036
Change-Id: I71d5a7dca65baf88ffae9aaca12467c25eac5b71
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commitdc45d0485e2453db50c281d2a496a7a00632eb04
parentef70e2761690468962edaefd83c43c4e07cb1eb0
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeTue, 28 Apr 2026 08:12:17 +0000