[Qt-interest] Get the length of a QPainterPath at paramater t?

Daniel Price daniel.price at fxhome.com
Wed Jan 6 17:53:31 CET 2010


I'm using QPainterPath with beziers for drawing a graph and need to get the graph data at a specific 'slice' along the x-axis.

QPainterPath::pointAtPercent expects its argument to be relative to the length of the path, not the x-axis.

QPainterPath::percentAtLength() can get this but then there is no function to find the length of a path at a specific point in the drawing. How can I find the percentage or length of the path at a specific slice in the graph? Is it possible?


Daniel Price


________________________________
This email is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you are not the intended recipient please notify the sender. Please delete the message from all places in your computer where it is stored. You should not copy the email or use it for any purpose or disclose its contents to any other person.To do so may be unlawful. Email is an informal means of communicating and may be subject to data corruption accidentally or deliberately. For this reason it is inappropriate to rely on advice contained in an email without obtaining written confirmation of it first.

FXhome Limited is a limited company registered in England and Wales. Registered number: 04172812. Registered office: The Henderson Business Centre, Ivy Road, Norwich, Norfolk, NR5 8BF, U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100106/d27327ce/attachment.html 


More information about the Qt-interest-old mailing list