[Development] Changing qreal to a float
samuel.rodal at nokia.com
Mon Feb 20 17:04:56 CET 2012
On 02/20/2012 04:58 PM, ext Christoph Feck wrote:
> On Monday 20 February 2012 16:02:09 Thiago Macieira wrote:
>> I also thought we had agreed that QRectF should be float on all
>> platforms and we don't need double-precision geometric classes
> I think we agreed on the former, but hopefully not on the latter. Many
> geometric classes, such as QLineF, have functions that are used
> outside rendering, so having double-precision classes are very useful
> to have.
> Maybe add explicit QRectS and QRectD classes, and deprecate QRectF
> (same for QPointF, QLineF and friends)?
This seems quite unfeasible. These classes are mainly used together with
QPainter (or scene graph for QML 2), and if those are to use float
internally, I don't really see the point with keeping double versions
around for just a subset of classes.
More information about the Development