-# Path to Qt binaries (needed for cmake to find the Qt libs).
-# export PATH="/usr/local/opt/qt/bin:$PATH" # Qt4
-export PATH=`brew list qt5 | grep bin | head -n 1 | xargs dirname`":$PATH" # Qt5
+# We use Qt 5.5 in order to remain compatible with more versions of Mac OS X.
+QTVER=qt@5.5
+
+# Path to Qt5 binaries (needed for cmake to find the Qt5 libs).
+export PATH=`brew list $QTVER | grep bin | head -n 1 | xargs dirname`":$PATH"