StudioWelcome: Disable welcome page if inactive

On Windows 11 a side effect of having the welcome page
active if up to 10% CPU load (one core) in the GUI thread if the user interacts with
the GUI. If idle QDS takes 0%, but just clicking at menus can take up
to 10% CPU, if the welcome page is active.

See QTBUG-102549 and QDS-6750 for profiling data.
This seems to be related to accessibility.


Change-Id: Id098579003ef63d2d06bfb1f2afaeca15c3bbc70
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2022-04-28 18:26:33 +02:00
committed by Tim Jenssen
parent 23661dfb4b
commit 77d5999a33

View File

@@ -671,6 +671,11 @@ WelcomeMode::WelcomeMode()
m_modeWidget->engine()->setOutputWarningsToStandardError(false);
connect(Core::ModeManager::instance(), &Core::ModeManager::currentModeChanged, this, [this](Utils::Id mode){
bool active = (mode == Core::Constants::MODE_WELCOME);
m_modeWidget->rootObject()->setProperty("active", active);
});
if (!useNewWelcomePage()) {
#ifdef QT_DEBUG