QT -= gui is not needed as the line above is directly assigning "core network dbus" to QT.