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* loo
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 mak
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
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.
https://codereview.qt-project.