aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tutorial/t14.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorial/t14.py')
-rw-r--r--examples/tutorial/t14.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorial/t14.py b/examples/tutorial/t14.py
index 0fcfa74c4..2d5e1a171 100644
--- a/examples/tutorial/t14.py
+++ b/examples/tutorial/t14.py
@@ -310,7 +310,7 @@ class CannonField(QtWidgets.QWidget):
return QtCore.QRect(145, self.height() - 100, 15, 99)
def barrelHit(self, pos):
- matrix = QtGui.QMatrix()
+ matrix = QtGui.QTransform()
matrix.translate(0, self.height())
matrix.rotate(-self.currentAngle)
matrix, invertible = matrix.inverted()