Skip to content

Commit d8d99d0

Browse files
committed
qt6: Do not use deprecated high DPI attributes in Qt 6
In Qt 6, high DPI pixmaps and scaling are always enabled. https://doc.qt.io/qt-6/highdpi.html
1 parent 8927bb8 commit d8d99d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/bitcoin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,9 +530,11 @@ int GuiMain(int argc, char* argv[])
530530
Q_INIT_RESOURCE(bitcoin);
531531
Q_INIT_RESOURCE(bitcoin_locale);
532532

533+
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
533534
// Generate high-dpi pixmaps
534535
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
535536
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
537+
#endif
536538

537539
#if defined(QT_QPA_PLATFORM_ANDROID)
538540
QApplication::setAttribute(Qt::AA_DontUseNativeMenuBar);

0 commit comments

Comments
 (0)