Unsolved Is there a way to zoom in and out of a paint event?
-
I am looking for a way to zoom in and out of a paintevent and I'm not really sure how to go about it.
Any help would be appreciated.
-
Have you tried setting the transformation matrix?
-
@ofmrew said in Is there a way to zoom in and out of a paint event?:
Have you tried setting the transformation matrix?
looks reasonable to me. QPainter has several methods that are directly related to this.
-
Do you know what the transformation matrix is and how to use it?
-
read the QPainter documentation
-
Better yet read: https://doc.qt.io/qt-5/qtwidgets-painting-transformations-example.html as it gives examples.