0
点赞
收藏
分享

微信扫一扫

Qt报错:calling ‘split‘ with incomplete return type ‘QStringList‘


Qt开发,代码报错,提示:

error: calling 'split' with incomplete return type 'QStringList'

Qt报错:calling ‘split‘ with incomplete return type ‘QStringList‘_#include

代码:

QStringList strs = numStr.split(".");

研究了一会儿,其实原因就是缺少引用,比如这行代码中就是缺少QStringList的引用,加上就解决了:

#include "QStringList"


举报

相关推荐

0 条评论