79187055

Date: 2024-11-14 00:41:01
Score: 2.5
Natty:
Report link

Thank you @chehrlic for a solution that worked.

Using on windows, adding the preprocessor OS check for windows and changing the style to 'windowsvista' if true, solved the immediate problem.

main.c

#include <QStyleFactory>

// if windows, set this style
#ifdef Q_OS_WIN
    if (QStyleFactory::keys().contains("windowsvista")) {
        a.setStyle(QStyleFactory::create("windowsvista"));
    }
#endif
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • User mentioned (1): @chehrlic
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: denver-coder