Re: [Development] Issues with QPainter::drawPolygon (off by one error?)

2024-04-26 Thread Henry Skoglund
On 2024-04-26 21:52, Christian Ehrlicher via Development wrote: Hello, I'm currently trying to investigate a painting problem within the windowsvista / common style:     QImage img(7, 7, QImage::Format_ARGB32_Premultiplied);     QPolygon poly{ QPoint(1, 1), {5, 1}, {3, 5} };     QPainter p(&img

[Development] Issues with QPainter::drawPolygon (off by one error?)

2024-04-26 Thread Christian Ehrlicher via Development
Hello, I'm currently trying to investigate a painting problem within the windowsvista / common style:     QImage img(7, 7, QImage::Format_ARGB32_Premultiplied);     QPolygon poly{ QPoint(1, 1), {5, 1}, {3, 5} };     QPainter p(&img);     p.setPen(Qt::NoPen);     p.setBrush(QColor(Qt::black));