Qt6: disable some Attributes

This commit is contained in:
tobtoht 2022-05-24 17:34:52 +02:00
parent 5c1fda7310
commit 9d2da9b2f0
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -114,8 +114,10 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
constants::networkType = NetworkType::MAINNET; constants::networkType = NetworkType::MAINNET;
// Setup QApplication // Setup QApplication
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton); QApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
#endif
QApplication::setDesktopSettingsAware(true); // use system font QApplication::setDesktopSettingsAware(true); // use system font
QApplication::setApplicationVersion(FEATHER_VERSION); QApplication::setApplicationVersion(FEATHER_VERSION);