Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
4.1.0, 5.15.8, 6.2.4, 6.3.0
-
None
-
8
Description
When doing something like:
QPoint pt;
QPointF fPt;
QMatrix mat;
fPt = mat.map( pt );
the automatic conversion of QPoint to QPointF kicks in and this can cause a problem. By making the relevant constructor explicit and by providing a to...() function it could be prevented.
Answer from Trolltech:
In general we agree. The only problem is that making the constructor explicit will break a lot of code that expects exactly this behavior. Since we promised full source code compatibility in the Qt 4 series, this issue is now scheduled for Qt 5.