[Development] Proposal: Make QPen non-cosmetic by default

Sorvig Morten Morten.Sorvig at digia.com
Thu Oct 11 14:22:43 CEST 2012

On Oct 11, 2012, at 10:58 AM, Bache-Wiig Jens <Jens.Bache-Wiig at digia.com> wrote:
> I have personally never seen an actual use case where a cosmetic pen makes sense, but  I assume there are reasons for having i so anyone creating an explicit QPen(Qt::black, 0.0) should get a 1.0 pixel thick line regardless of scaling.

I agree in general. I'm wondering if a 2 pixel-wide line for  QPen(Qt::black, 0.0) would be a better option in high-dpi mode - the user is expecting to "fill" one point. The result will look like a scaled pixmap, but won't have gaps. 


More information about the Development mailing list