我是Qt新手,当我尝试运行一个程序时,会出现导入错误
fatal error: QHostAddress: No such file or directory由main.cpp中的导入引起的
#include <QCoreApplication>
#include <QHostAddress>当QCoreApplication.h可用时,似乎缺少了QHostAddress.h
发布于 2015-03-07 16:35:01
确保你有达到以下效果的东西:
QT += network在.pro文件中。然后再次运行qmake,然后重新编译。
https://stackoverflow.com/questions/28917146
复制相似问题