From 5e0c2953169a20ea3229c1b26dba2c995daf8127 Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Tue, 6 Dec 2011 16:25:56 +0100 Subject: [PATCH] make the item's text size independent of the scene's transformation (fixes #64) --- sloth/items/items.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sloth/items/items.py b/sloth/items/items.py index a1f2d23..7070858 100644 --- a/sloth/items/items.py +++ b/sloth/items/items.py @@ -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