[Development] Changing qreal to a float

Andreas Aardal Hanssen andreas at hanssen.name
Tue Feb 21 15:28:19 CET 2012

2012/2/21 Thiago Macieira <thiago.macieira at intel.com>

> On terça-feira, 21 de fevereiro de 2012 09.59.49, Marc Mutz wrote:
> > sure I'd like that), then keeping QRect and using QRectI =
> QBasicRect<int>
> > could do the trick.
> QRect must have the same semantics as it has today. Whether we want to add
> a
> *second* rectangle class with slightly different semantics, I'll leave up
> to
> the implementor.

QRect's silly semantics are one huge reason why it can make sense to
obsolete it and its friends, and make new QRectangle classes that all
behave the same.

I've run into numerous issues that are due to the fact that some rectangle
variable's right() value is different depending on whether it's QRect or
QRectF. QRect was kept this way for compatibility with Qt 3. Qt 5 should
have no more such crap.

There never was any QPoly (gon), QEll (ipse), why should there be a QRect.
M'just sayin'.

(sorry if this arrives twice to the list btw)

Andreas Aardal Hanssen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120221/a62a6b97/attachment.html>

More information about the Development mailing list