Added QT += svg and I tried just QT += svg and greaterThan(QT_MAJOR_VERSION, 4): QT += svg to the .pro solution file and ran qmake from inside the QtCreator and got this err
Debian Stretch:
sudo apt install libqt5svg5-dev
Fedora (courtesy of @robin-green):
sudo dnf install qt5-qtsvg-devel