I tried my best to port the default Dark+ theme from VS Code into Qt Creator, as I find it quite nice, but I cannot replicate it 1:1 due to the limitations of Qt's theme engine, for example Qt doesn't differentiate between keywords like const
, namespace
, and enum
which would be blue in VSCode, and keywords like if
, operator
, return
, which would be purple in VSCode; it's either one or the other in Qt, so I've included both options to choose from, purple keywords (what I prefer), but also blue keywords. I hope you enjoy!
Just move one or both of the .xml
files of your choice into your Qt Creator styles folder, and the .creatortheme
file into your Qt Creator themes folder. These two folders belong to the same parent directory, whose location depends on your operating system, and of which there are always two. The first belongs to your Qt Creator installation directory, and contains Qt Creator's default styles & themes -- any styles located there cannot be modified from within Qt Creator. The second, recommended location, is located in the user data directory for whichever operating system you are using.
From: https://doc.qt.io/qtcreator/creator-quick-tour.html#location-of-settings-files
In Qt5
-
Full Paths:
C:\Users\%USERNAME%\AppData\Roaming\QtProject\qtcreator\styles
C:\Users\%USERNAME%\AppData\Roaming\QtProject\qtcreator\themes
-
Shortcut Paths:
%appdata%\QtProject\qtcreator\styles
%appdata%\QtProject\qtcreator\themes
If the theme
or styles
folder don't exist, create them.
In Qt6
- Full Path:
G:\QT6\Tools\QtCreator\share\qtcreator\styles
G:\QT6\Tools\QtCreator\share\qtcreator\themes
~/.local/share/data/QtProject/qtcreator
~/Library/Application Support/QtProject/Qt
Font used in the screenshots: MonoLisa
.creatortheme
and Doxygen comment colours courtesy of yunke120