1 Prerequisite
1.1 Reference address
https://wiki.qt.io/Transition_from_Qt_4.x_to_Qt5#846d0d314d8d4894bde364f45acf02e4
2 FAQ
Question 1: error: QWidget: No such file or directory
Solution:
Open the pro file and include:
QT += widgets
问题2:error: QSound: No such file or directory
Solution:
Open the pro file and include:
QT += multimedia
问题3:QtGui/QApplication: No such file or directory
Solution: