From 6ab7a92d4dfa44286d5b10f9387cd40d2603866d Mon Sep 17 00:00:00 2001 From: Mika Fischer Date: Tue, 21 Jun 2011 11:52:09 +0200 Subject: [PATCH] Try to improve rendering quality (still looks terrible) --- sloth/gui/frameviewer.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sloth/gui/frameviewer.py b/sloth/gui/frameviewer.py index ca552af..b3904ca 100644 --- a/sloth/gui/frameviewer.py +++ b/sloth/gui/frameviewer.py @@ -17,9 +17,7 @@ class GraphicsView(QGraphicsView): def __init__(self, parent=None): QGraphicsView.__init__(self, parent) #self.setDragMode(QGraphicsView.ScrollHandDrag) - self.setRenderHint(QPainter.Antialiasing) - self.setRenderHint(QPainter.TextAntialiasing) - + self.setRenderHints(QPainter.Antialiasing | QPainter.SmoothPixmapTransform | QPainter.TextAntialiasing); self.setStyleSheet("QFrame { border: 3px solid black }"); self.active_ = False