From 419af5c5e5d61ad7ffb7796c9bd50662b42153a7 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 31 Oct 2022 00:50:58 +0600 Subject: [PATCH] qt: try another fix for the issue --- src/qt/qt_mainwindow.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/qt/qt_mainwindow.hpp b/src/qt/qt_mainwindow.hpp index a91fd1f57..1f4c099fc 100644 --- a/src/qt/qt_mainwindow.hpp +++ b/src/qt/qt_mainwindow.hpp @@ -5,6 +5,8 @@ #include #include #include +#include +#include #include #include @@ -128,6 +130,15 @@ protected: void showEvent(QShowEvent* event) override; void closeEvent(QCloseEvent* event) override; void changeEvent(QEvent* event) override; + void paintEvent(QPaintEvent* event) override + { + QPainter painter(this); +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + painter.fillRect(0, 0, this->width(), this->height() - statusBar()->height(), QColorConstants::Black); +#else + painter.fillRect(0, 0, this->width(), this->height() - statusBar()->height(), Qt::black); +#endif + } private slots: void on_actionShow_non_primary_monitors_triggered();