From koffice-devel Mon Mar 22 15:41:46 2010 From: Jos van den Oever Date: Mon, 22 Mar 2010 15:41:46 +0000 To: koffice-devel Subject: Re: QPen Message-Id: <201003221641.46520.Jos.van.den.Oever () kogmbh ! com> X-MARC-Message: https://marc.info/?l=koffice-devel&m=126927256415538 On Monday 22 March 2010 15:56:10 Korinek Pavol wrote: > Hi, > > yes that's the problem. In documentation is written that width zero (0) is > cosmetic pen. Why it's used for (0, 1) without 0 ? In MS word there are > used also used values between 0 and 1. 1/2 for example. Than I can't fix > this bug completely. Interesting is: When I use: > QVector dashes; > qreal space = 4; > qreal dot = 4; > qreal dash = 8; > dashes << dot << space << dash << space; > pen.setDashPattern(dashes); > instead of > DotDash style, > than it's painted also with 1/2 width, but of don't now reason why, right > side of border isn't. I hoped that I can replace it with it, but actually > no. Did you set the pen with with setWidthF(0.5) or with setWidth(0.5)? Only the version with 'F' might work. Cheers, Jos -- Jos van den Oever, software architect +49 391 25 19 15 53 http://kogmbh.com/legal/ _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel