Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Compile Qt Creator with dark theme

Qt Creator dark theme

I've implemented a new dark theme for Qt Creator (inspired by this .css file), see attached screenshot.

Find the codereview over on

Here's how to compile it:

Optional: Compile Qt

Qt Creator now requires Qt 5.3.1 (see this commit). If you have Qt >= 5.3.1, you should be fine.

Otherwise, compile Qt for yourself. I've compiled Qt's 5.4 branch as follows.

On Ubuntu 14.04, install some dependencies

sudo apt-get install flex bison gperf libicu-dev libxslt-dev ruby \
                     "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev \
                     libfreetype6-dev libharfbuzz-dev
sudo apt-get remove appmenu-qt5 appmenu-qt

Then, compile Qt5 from git (see

git clone git:// qt5
cd qt5
git checkout 5.4
git submodule update
git submodule foreach git clean -df
./configure -opensource -confirm-license -release \
            -nomake examples -system-sqlite -optimized-qmake -system-harfbuzz -v \
make -j3
make install

Build QtCreator

git checkout
cd qt-creator
git checkout --track origin/creatortheme_dark
/nobackup/inst/bin/qmake -r
make -j3

Run with dark theme

./bin/ -theme dark

This comment has been minimized.

Copy link

@MaxBaeten MaxBaeten commented Jul 29, 2015

That Qt looks awesome!
However, in the build step of Qtcreator, the first git checkout gives me the following error:

git checkout
error: pathspec '' did not match any file(s) known to git.

Did I do something wrong in the build of Qt5? I got an error there as well which i could surpass by adding -continue.

The files that are now in my ~/qt5 folder are:

configure qtdeclarative qtsensors
configure.bat qtdoc qtserialport
gnuwin32 qtdocgallery qtsvg
init-repository qtenginio qtsystems
LGPL_EXCEPTION.txt qtfeedback qttools
LICENSE.FDL qtgraphicaleffects qttranslations
LICENSE.GPLv2 qtimageformats qtwayland
LICENSE.LGPLv21 qtlocation qtwebchannel
LICENSE.LGPLv3 qtmacextras qtwebengine
LICENSE.PREVIEW.COMMERCIAL qtmultimedia qtwebkit
Makefile qtpim qtwebkit-examples
qt3d qtwebsockets
qtactiveqt qtqa qtwinextras
qtandroidextras qtquick1 qtx11extras
qtbase qtquickcontrols qtxmlpatterns
qtcanvas3d qtrepotools README
qtconnectivity qtscript README.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment