c++ - Scaling and moving QPainterPath -


is there way scale qpainterpath?

in example problem have qpainterpath size of 400,400 containing many lines , scale 800,800 or other size , move whole thing adding offset other coordinate.

edit:

the source of problem draw on 1 widget , later phase want show drawing on other widget scaling proper size. why thinking on scaling qpainterpath.

you can't directly, can encapsulate qpainterpath in new class derived qgraphicsitem , call painter path's draw new class's paint function.

then have move / scale new item.


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -