summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qexception.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-21 17:24:03 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-04-24 17:41:02 +0200
commit70ad4042033219d9cafc66f7b6365aa0caeeee3e (patch)
tree155110bf7ddaaaae3e3b24cfef1a6e208dec1a6d /src/corelib/thread/qexception.cpp
parented86a4f25322ab0d08ad8ee9d3c507146573b1e0 (diff)
QMainWindow: don't grow memory when modifying tabbed docks while hidden
QMainWindow tries to avoid memory allocations by caching tab bars that are no longer used. That cache is populated when the layout is activated. The layout might never be activated when the main window is never shown, in which case adding and removing dock widgets at runtime will continuously allocate more memory for tab bars that are created. A workaround is to call QMainWindow::layout()->activate() explicitly in application code, once all dock widgets have been removed. This change avoids that applications have to do that. Change-Id: I70eb585d2120f0b7b73f59c3ee65d7242c12ec59 Fixes: QTBUG-83135 Pick-to: 5.15 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/corelib/thread/qexception.cpp')
0 files changed, 0 insertions, 0 deletions