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

2024-04-28 Thread Christian Ehrlicher via Development
Am 28.04.2024 um 13:50 schrieb Allan Sandfeld Jensen: I think the problem with the cosmetic pen is partly the need to be symmetric. Years ago I tried cleaning up the cosmetic pen, but had to revert it because it violated rules about symmetry.

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

2024-04-28 Thread Christian Ehrlicher via Development
Am 26.04.2024 um 22:48 schrieb 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

[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();     p.setPen(Qt::NoPen);     p.setBrush(QColor(Qt::black));    

[Development] Documentation and Q_GADGET / Q_PROPERTY

2024-01-15 Thread Christian Ehrlicher via Development
Hi, In the sql module I've some classes which do not derive from QObject but have a lot of setters/getters. For a nicer documentation without duplicating information I had the idea to convert them to properties. So I added Q_GADGET and a simple Q_PROPERTY with only a READ and WRITE property -