qtbase/examples/corelib/threads/mandelbrot
Thiago Macieira 02f5cc7ed2 Examples: don't overflow a QRect with adjusted()
Required after 1145e1709d made QRect use
QCheckedInt. We can avoid this by simply using QRectF one step earlier
in the calculation, which a) expands the range from ±2^31 to ±2^53 and
b) neatly avoids infinite zooming by not doing anything after 2^53
(because 2^53 + 1 = 2^53).

Fixes: QTBUG-138504
Pick-to: 6.10
Change-Id: Ibe382ad9b98bbfb9fde6fffd94bd733a4b999852
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2025-08-27 18:46:19 +00:00
..
CMakeLists.txt CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
main.cpp Revamp Mandelbrot example: Use a Literal operator to create QString 2023-09-11 15:05:47 +02:00
mandelbrot.pro
mandelbrotwidget.cpp Examples: don't overflow a QRect with adjusted() 2025-08-27 18:46:19 +00:00
mandelbrotwidget.h Revamp Mandelbrot example: Declare slots as methods instead 2023-09-13 20:45:17 +02:00
renderthread.cpp Examples: fix UB calls into QElapsedTimer 2025-03-26 02:04:43 +01:00
renderthread.h examples/: fix compiler warnings -Wdeprecated-enum-float-conversion 2023-08-18 23:35:52 +03:00