Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.0
-
None
Description
QRectF has a very useful function toAlignedRect() which basically rounds-up the rectangle to produce integer QRect.
I would find very useful and intuitive to have similar function for QSizeF, i.e. toAlignedSize() which would return rounded-up integer QSize.
Without this, one must manually write QSize(ceil(sizeF.width()), ceil(sizeF.height())).