Guys,

Does anyone know about integer overflow bug in QPainter::drawEllipse()?

Qt Code:
  1. void MainWindow::paintEvent(QPaintEvent *)
  2. {
  3. QPainter p(this);
  4. p.setBrush(Qt::red);
  5. p.drawEllipse(QPointF(-327650.0, 131100.0), 10.0, 10.0);
  6. }
To copy to clipboard, switch view to plain text mode 
Code above will draw black circle in top left corner of the widget (Windows only, Linux is fine) instead of far away from the visible area.

It doesn't happen for ie drawRectangle.

I couldn't find anything in Qt Bug Database.

Tested with Qt 4.6.3 and 4.7.4.