[Development] Changing qreal to a float

Marc Mutz marc.mutz at kdab.com
Mon Feb 20 16:15:15 CET 2012

On Monday February 20 2012, andre.poenitz at nokia.com wrote:
> PS: If we agree that  template <class T> QRectBase;  class QRectF :
> QRectBase<float> class QRectD : QRectBase<double> etc would be acceptable
> for 5.0 I'd try to come up with a patch for (b). For (a) the short solution
> would be simply making the typedef unconditional, or in the luxury variant
> to add a configure switch (which I'd try to avoid...)

Why not just use a typedef:

  typedef QRectImpl<int> QRect;
  typedef QRectImpl<double> QRectD;
  typedef QRectImpl<float> QRectF;



Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions

More information about the Development mailing list