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

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -