Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.7.3, 4.8.x, 6.7
-
None
-
48b1af941 (dev), 5ead2a3d6 (6.9), f5000beeb (6.8), 79debe2f2 (tqtc/lts-6.5), f91669320 (tqtc/lts-5.15)
Description
The following code:
QTransform result;
qDebug() << QTransform::quadToQuad(QRectF(0,0,1,1), QRectF(0,0,1,1), result);
outputs "false".
The reason is that QPolygonF::QPolygonF(const QRectF&) creates a polygon with 5 points, repeating the first, and quadToQuad only accepts polygons with four points.
You can work around it by creating the polygons yourself, but that is significantly more verbose.
Attachments
Issue Links
- relates to
-
QTBUG-127723 tst_QSvgRenderer::testFeFlood() failed on Ubuntu 24.04 X11 and offscreen
-
- Closed
-
-
QTBUG-130999 does qt support this quadtoquad transform
-
- Reported
-
For Gerrit Dashboard: QTBUG-21329 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
613982,4 | Fix QTransform::quadToQuad() to work with QRectF | dev | qt/qtbase | Status: MERGED | +2 | +1 |
614606,2 | Fix QTransform::quadToQuad() to work with QRectF | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
614657,2 | Fix QTransform::quadToQuad() to work with QRectF | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
614785,3 | Fix QTransform::quadToQuad() to work with QRectF | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
614863,3 | Fix QTransform::quadToQuad() to work with QRectF | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |