HI all,
The following code:
self.painter = QtGui.QPainter(self)
self.painter.setRenderHint(QPainter.Antialiasing)
self.painter.translate(482,395)
self.painter.scale(300,300)
self.painter.save()
needle = Qt.QPolygon([QPoint(30, 0), QPoint(-30, 0), QPoint(0, 200)])
self.painter.setBrush(Qt.cyan)
self.painter.setPen(Qt.black)
self.painter.drawPolygon(needle)
self.painter.restore()
is causing my Pyqt application to crash. Does anyone have any idea why? It is part of my ui_form.py file which was automatically spat out by pyuic4. Removing / commenting it out fixes the problem. Yes, I wrote this myself instead of the compiler doing it.
Many thanks!