Search code examples
windowsuser-interfacecmakeqt5appearance

Cmake windows project using Qt appears as windows 95


I am trying to build an apllication using CMake and Qt that does a bunch of stuff. All the logic is working fine so far, CMake is finding Qt 5.10.0 and the software runs, no struggle there. The window class is inheriting QWidget.

The problem I am having is that the appearence of the gui is like windows 95, where I want it to be modern windows 10-like

enter image description here

Does anyone have a fix for this, using cmake?


Solution

  • As eyllanesc mentioned setting the QApplication style to "fusion" did the trick. Does not look like windows now, but at least not the ugly windows 95 style.