Avoid Qt 6.5 bug when using windows11 style

Continuation of e9e8393, the bug is present in 6.5.3 too.
This commit is contained in:
Alejandro Martinez
2025-02-11 17:15:37 -03:00
parent f54bbed686
commit 69e5065c67

View File

@@ -57,7 +57,7 @@
#include <gsl/gsl_errno.h>
#ifdef Q_OS_WIN
#if QT_VERSION > 0x060700
#if QT_VERSION > 0x060500
#include <QStyleFactory>
#endif
#endif
@@ -436,7 +436,7 @@ main(int argc, char *argv[])
application = new QApplication(argc, argv);
#ifdef Q_OS_WIN
#if QT_VERSION > 0x060700
#if QT_VERSION > 0x060500
if (application->style()->name() == "windows11") {
application->setStyle(QStyleFactory::create("Windows"));
qDebug()<<"Replacing windows11 by Windows style to avoid a Qt bug";