I'm not sure if this applies directly to pyQt, but on the C ++ side, the rendering sides should be set at any time when the picture scales or looks bad. This is how I set my flags:
m_paintFlags = QPainter::RenderHint(QPainter::Antialiasing |
QPainter::SmoothPixmapTransform |
QPainter::HighQualityAntialiasing);
Then in the drawing event before drawing anything:
painter.setRenderHints(m_paintFlags);
source
share