[Interest] How to paint smooth rendering of connected QLineF's?

Patrick Stinson patrickkidd at gmail.com
Tue Feb 28 19:58:59 CET 2017


Wow wow wow. This is a great example for me to port. I am working in Python, and if I can get a working snippet I'll pass it on for sure.

> On Feb 28, 2017, at 8:38 AM, Mike Chinander <chinander at gmail.com> wrote:
> 
> If you are doing this within a QGraphicsView, make sure you turn on antialiasing. Also, you might want to try a rounded join style on the QPen you are using. Posting an example of what you are getting now would help others help you.
> 
>> On Tue, Feb 21, 2017 at 4:17 AM, Patrick Stinson <patrickkidd at gmail.com> wrote:
>> Hello!
>> I am painting a series of connected QLineF's with varying vectors and widths. Is there any way to smooth them out to be more vector-ish, so you don't see the jagged transitions between the segments?
>> 
>> This is for hand writing notes with the Apple Pencil. I have one segment per event with pressure determining width and it just looks so jagged now...
>> 
>> Thanks!
>> 
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>> 
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170228/cf430691/attachment.html>


More information about the Interest mailing list