Unsolved mapToScene is returning me nan
-
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());
fflush(stdout);Any guess why mapToScene is returning me nan ?
-
You print floats p2.left(),p2.bottom(),p2.right(),p2.top() as double "%lf".
-Michael.