Re: [Interest] QPainter::drawRect incorrectly "rounds" corners

2020-10-21 Thread Giuseppe D'Angelo via Interest
Il 21/10/20 20:11, Matthew Woehlke ha scritto: Yes (although there's a related story there; sigh). Turns out the default corner style is... unhelpful. Ick. I still think there's a bug; the corners should at least all be the same... This might be QTBUG-25896 (cf.

Re: [Interest] QPainter::drawRect incorrectly "rounds" corners

2020-10-21 Thread Matthew Woehlke
On 21/10/2020 13.16, David M. Cotter wrote: are your pixels specified in floating point? have you accounted for the half-pixel offset? Yes (although there's a related story there; sigh). Turns out the default corner style is... unhelpful. Ick. I still think there's a bug; the corners should

Re: [Interest] QPainter::drawRect incorrectly "rounds" corners

2020-10-21 Thread David M. Cotter
are your pixels specified in floating point? have you accounted for the half-pixel offset? > On Oct 21, 2020, at 10:03 AM, Matthew Woehlke > wrote: > > I'm implementing a custom widget style for an application, and running into a > strange problem with QPainter::drawRect. Namely, it is not

[Interest] QPainter::drawRect incorrectly "rounds" corners

2020-10-21 Thread Matthew Woehlke
I'm implementing a custom widget style for an application, and running into a strange problem with QPainter::drawRect. Namely, it is not making the corners square. This may be a problem specific to high-DPI displays and/or using a pen width more than one physical pixel. The corner *should*