VSK7.1+QT5.10环境下报该错误,应该在mainwindow.cpp中添加如下语句 记住,是在mainwindow.cpp中添加,不是在main.cpp中添加; 转载于:https://www.cnblogs.com/canyeweiwei/p/10643356.html