Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.5.2
-
None
Description
On Mac OS X (carbon or Cocoa), QTransform is not applied correctly on all painting function. (The painting work correctly with the raster engine)
Here is an example to reproduce the issue:
#include <QtGui>
class Widget : public QWidget
{
public:
Widget();
protected:
void paintEvent(QPaintEvent* event);
};
Widget::Widget()
{
setFixedSize(600, 450);
}
void Widget::paintEvent(QPaintEvent*)
{
QPainter painter(this);
QTransform transform;
transform.rotate(50.0, Qt::YAxis);
painter.setTransform(transform);
painter.fillRect(0, 0, 300, 200, Qt::red);
painter.drawLine(0, 200, 300, 200);
}
int main(int argc, char** argv)
{
QApplication app(argc, argv);
Widget widget;
widget.show();
return app.exec();
}