[Interest] sin wave with QPainterPath between two points

Patrick Stinson patrickkidd at gmail.com
Thu Jul 20 09:47:54 CEST 2017


Hello! I want to figure out how to draw a sin wave between two QPointF’s using QPainterPath. Calculating the cubic control points seems like the best way, but I am far from mastering that theory.

This is a diagramming app and the goal is to get a squiggly line between two objects.

Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1403 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170720/3291626c/attachment.bin>


More information about the Interest mailing list