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 error:
error: Unknown module(s) in QT: svg
Any ideas?
You are lacking the installation of the the QtSvg library. Try to install them on your Ubuntu 13.10 in the following way:
sudo apt-get install libqt5svg5*
Debian Stretch:
sudo apt install libqt5svg5-dev
Fedora (courtesy of @robin-green):
sudo dnf install qt5-qtsvg-devel
来源:https://stackoverflow.com/questions/21098805/unknown-modules-in-qt-svg