From 22b0ebb5a817885a8ee038eab92e349134f9c743 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 8 Dec 2017 11:05:52 +0800 Subject: [PATCH] Disable the "?" help button in all dialogs on Windows. Closes #7365. --- src/app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index 7a1a8c9b0..a4df8fd75 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -212,6 +212,10 @@ int main(int argc, char *argv[]) // 3. https://bugreports.qt.io/browse/QTBUG-46015 qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(-1)); +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) + // this is the default in Qt6 + app->setAttribute(Qt::AA_DisableWindowContextHelpButton); +#endif #endif #if defined(Q_OS_MAC)