Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.8.6
-
None
-
Mac OS 10.9
Description
On a high-DPI screen, widgets proxied by a QGraphicsProxy are rendered at a low DPI. The example below draws a widget and a proxy widget; the proxy looks much worse.
This has been fixed in Qt 5.2.12 – would it be possible to backport the fix to Qt 4.8.x?
main.cpp
#include <QWidget> #include <QPainter> #include <QGraphicsScene> #include <QGraphicsView> #include <QApplication> class Circle : public QWidget { public: Circle(QWidget* parent=NULL) : QWidget(parent) { this->setFixedSize(60, 60); } void paintEvent(QPaintEvent* event) { QPainter painter(this); painter.setBrush(QBrush(Qt::red)); painter.drawEllipse(10, 10, 40, 40); } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); QGraphicsScene scene; QGraphicsView view(&scene); Circle c1(&view); Circle c2; scene.addWidget(&c2); view.show(); view.raise(); return a.exec(); }