Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.5.3
-
None
Description
In several situations QPainter::drawEllipse paints an invalid ellipse for thick pens. The situation depends on the paint engine or attributes like antialiasing and alpha value ... . You can see the mismatch easily with the code below on a X11 system. (screenshot is attached). The first circle is painted correctly while the second one is wrong. ( Started with -graphicssystem raster both circles are wrong. ) The bug happens with Qt 4.5.3 and Qt 4.6-beta1..
#include <QApplication>
#include <QWidget>
#include <QPainter>
class MyWidget: public QWidget
{
public:
MyWidget(QWidget *parent = NULL):
QWidget(parent)
protected:
virtual void paintEvent(QPaintEvent *)
};
int main(int argc, char **argv)
{
QApplication a(argc, argv);
MyWidget w;
w.resize(600, 600);
w.show();
return a.exec();
}
Attachments
Issue Links
- is replaced by
-
QTBUG-1292 QImage drawEllipse bug
- Closed