diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 844edec63..8ca284a61 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -67,7 +67,7 @@ MainWindow::MainWindow(QWidget *parent) : #ifdef Q_OS_WINDOWS auto font_name = tr("FONT_NAME"); auto font_size = tr("FONT_SIZE"); - setFont(QFont(font_name, font_size.toInt())); + QApplication::setFont(QFont(font_name, font_size.toInt())); #endif mm = std::make_shared(this); @@ -1575,7 +1575,7 @@ void MainWindow::changeEvent(QEvent* event) { auto font_name = tr("FONT_NAME"); auto font_size = tr("FONT_SIZE"); - setFont(QFont(font_name, font_size.toInt())); + QApplication::setFont(QFont(font_name, font_size.toInt())); } #endif QWidget::changeEvent(event);