qt 问题集锦

1.qmake的时候出现no such file

在.pro文件添加  QT += widgets


2.出现undefined reference to classname

在QT后加上   core gui network   ,network是对应的类

QT += widgets \
core gui network

    

发布了37 篇原创文章 · 获赞 14 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/xiaod_szu/article/details/11662267