Hi... can this be a QT bug? because my code is quite simple and seems like it's not working as expected.
QT Assistant:
IntersectType QLineF::intersect ( const QLineF & line, QPointF * intersectionPoint ) const
Returns a value indicating whether or not this line intersects with the given line.
The actual intersection point is extracted to intersectionPoint (if the pointer is valid). If the lines are parallel, the intersection point is undefined.
My code:
Qt Code:
int test = firstQLineF.intersect(otherQLineF, puntoIntersec);To copy to clipboard, switch view to plain text mode
When the code is executed, test is 1 (not parallel) but the pointer is undefined, the intersection point is not "filled".
any idea? :S
thanks!
Bookmarks