undefined reference to 'QNetworkAccessManager'
I solved this for CMake by appending following lines to the CMakeLists.txt:
find_package(Qt5Network REQUIRED)
target_link_libraries(${PROJECT_NAME} Qt5::Network)
Do you have QT += network
in the .pro project file?
Edit: fixed typo, was config instead of QT