Solved Implement proper zooming
-
For a special use case, I would like to simply zoom the whole QML scene by a factor (just like I can do in GraphicsView, for example).
Is there a clean way to do this? My initial trials to set a scale transform to the root item of my QML scene, and set the root item's size from the C++ side did not really work, and also seem overly complicated to me. It should be a simple thing for a rendering engine to render everything with a scaling factor, but I don't seem to be able to find the right calls.
-
@Asperamanca
Answering my own question: Using setScale() and setTransformOrigin() on the root item from the C++ side seems to work well. I just have to remember not to use scale and transformOrigin on root items in my QML files.