make the item's text size independent of the scene's transformation (fixes #64)

This commit is contained in:
Martin Baeuml
2011-12-06 16:25:56 +01:00
parent 1002806ef0
commit 5e0c295316
+1
View File
@@ -49,6 +49,7 @@ class BaseItem(QAbstractGraphicsShapeItem):
self._text_item = QGraphicsTextItem(self)
self._text_item.setPos(0, 0)
self._text_item.setAcceptHoverEvents(False)
self._text_item.setFlags(QGraphicsItem.ItemIgnoresTransformations)
self._text_item.setHtml(self._compile_text())
self._valid = True