Is there is existing function to find midpoint of QLineF
Solved
General and Desktop
-
I went through http://doc.qt.io/qt-4.8/qlinef-members.html and its list of functions . I could not find a readymade function that finds the midpoint of the QLineF .Is the any existing function to find the same . If point
How about
QPointF mid = QPointF((QLineF.p1().x()+ QLineF.p2().x())/2) ,(QLineF.p1().y()+ QLineF.p2().y())/2 )
Please let me know
-
Nothing exist in qt. you can apply mathematical formula and get it.
-
I cannot find anyone