qtbase/examples/corelib/threads
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
..
doc Doc: Remove usage of defunct QDoc command 2024-08-28 08:25:30 +02:00
mandelbrot Examples: don't overflow a QRect with adjusted() 2025-08-27 18:46:19 +00:00
queuedcustomtype CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
semaphores CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
waitconditions CMake: Add deployment API to our examples 2024-03-22 20:23:52 +01:00
CMakeLists.txt Correct license for examples files 2024-03-07 11:06:43 +01:00
README
threads.pro

README

This folder contains examples for the use of the threading-related classes
in Qt Core. For examples using the higher-level Qt Concurrent module,
check out the "qtconcurrent" folder instead.

Documentation for examples can be found via the Examples and Tutorials link
in the main Qt documentation. The examples and their documentation can also
be opened from the Examples tab of Qt Creator's Welcome mode.