Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Ulf Hermann c706f837d4 Revert "Destroy the QUnifiedTimer when the Q*Application gets destroyed"
This reverts commit a9b430b965.

The reproducer of QTBUG-136629 shows an animation timer being deleted
without unregistering itself from the QUnifiedTimer driving it. It's
clearly the animation timer's responsibility to notify the
QUnifiedTimer about its deletion. Deleting the QUnifiedTimer on
application shutdown happens to fix the problem in this case, but is in
no way a generic solution to the issue of deleted animation timers
leaving dangling pointers in QUnifiedTimer.

Furthermore, prematurely deleting the QUnifiedTimer is an overt behavior
change. Before this, you could leave animations running across exec/quit
cycles of the QCoreApplication. When the QUnifiedTimer is deleted on
quitting the QCoreApplication, this is not possible anymore. The
QtStateMachine tests exercise this behavior.

Instead of working around the problem in QtCore, the offending animation
timer should simply unregister itself. This is a fix to be applied to
QtQml.

Pick-to: 6.8
Fixes: QTBUG-139989
Change-Id: I72acc9af5f7126e068600a4dfd581f9784713804
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit bcefe20119)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 5906668f9e)
2025-09-17 10:01:19 +00:00
.github/workflows
LICENSES Add REUSE.toml files 2024-11-05 14:36:16 +01:00
bin CMake: Don't hard-code "libexec" in qt-configure-module 2024-08-16 12:36:35 +02:00
cmake cmake: Don't create framework header directories unless we have headers 2025-09-14 05:19:23 +00:00
coin coin: Call make with -j option when building examples 2025-09-11 09:09:07 +00:00
config.tests Add copyright holder to the SPDX line 2025-03-06 02:45:25 +00:00
dist Add REUSE.toml files 2024-11-05 14:36:16 +01:00
doc Doc: Adjust the title of \externalpage topic causing linking issues 2025-08-30 13:36:16 +00:00
examples Doc: Update multi-threading doc title 2025-09-17 08:27:44 +00:00
lib
libexec qt-android-runner.py: support launching any activity name 2025-08-23 04:51:08 +00:00
mkspecs qmake: Make ccache feature available on windows hosts 2025-09-11 09:09:04 +00:00
qmake Fail builds on Apple platforms with invalid Info.plist 2025-07-09 07:58:36 +00:00
src Revert "Destroy the QUnifiedTimer when the Q*Application gets destroyed" 2025-09-17 10:01:19 +00:00
tests HTTP: don't send content-length: 0 2025-09-15 19:00:04 +00:00
util util/unicode: prepare qFatal()s for being passed views 2025-09-14 05:18:24 +00:00
.cmake.conf Bump version to 6.9.3 2025-08-13 16:50:21 +01:00
.gitattributes
.gitignore Fix .gitignore to ignore any build dir under the repo or its subdirs 2025-07-23 02:46:25 +00:00
.gitreview Add .gitreview file 2025-03-25 08:40:27 +00:00
.lgtm.yml
.tag
CMakeLists.txt CMake: Don't unconditionally enable the ASM language 2025-05-03 01:24:12 +00:00
REUSE.toml REUSE: Add annotations for QDoc generated metadata files 2025-09-08 23:16:36 +00:00
config_help.txt Introduce emoji-segmenter to 3rdparty code 2024-11-18 15:52:13 +01:00
configure Do not assume FHS in scripts 2024-06-25 11:44:00 +02:00
configure.bat configure.bat: Use call when calling the helper cmake scripts 2025-01-30 21:18:49 +00:00
configure.cmake Android: NDK28 and later 16KB page size support for user projects 2025-08-24 11:59:03 +00:00
dependencies.yaml
licenseRule.json Fix typo in licenseRule.json 2025-07-18 12:56:48 +00:00
qt_cmdline.cmake Build system: support C++2c 2025-07-07 21:55:34 +00:00