Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
mapToScene is returning me nan
Qt Enthusiast last edited by
I have Qt
QRectf rect ( which has valid coordinates , but my mapToScene is returning nan
QRectF p2 = mapToScene(rect).boundingRect();
printf("\n P2 Rect %lf %lf %lf %lf",p2.left(),p2.bottom(),p2.right(),p2.top());
Any guess why mapToScene is returning me nan ?
m.sue last edited by
You print floats p2.left(),p2.bottom(),p2.right(),p2.top() as double "%lf".