Soy丶sauce

关注

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

Soy丶sauce

关注

阅读 33

2022-05-10


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"


相关推荐

一天清晨

【Mybatis报错】attempted to return null from a method with a primitive return type (int).

一天清晨 137 0 0

Aliven888

Qt|QStringList转QString

Aliven888 33 0 0

上善若水山西太原

Qt报错:XXX does not name a type

上善若水山西太原 80 0 0

鲤鱼打个滚

Qt - 编译报错:“invalid use of incomplete type ‘class Ui::xxx‘ui(new Ui::xxx)”的解决方法

鲤鱼打个滚 17 0 0

斗米

error: invalid application of 'sizeof' to an incomplete type 'JNINativeMethod []'

斗米 71 0 0

有态度的萌狮子

qt src/main.cpp:16:18: error: variable has incomplete type 'QApplication'

有态度的萌狮子 26 0 0

李雨喵

Qt: QStringList去除重复元素

李雨喵 174 0 0

兵部尚输

一、variable `xxx' has initializer but incomplete type

兵部尚输 32 0 0

天蓝Sea

qt 容器QStringList的常见使用

天蓝Sea 52 0 0

殇感故事

No converter found for return value of type

殇感故事 63 0 0

精彩评论(0)

0 0 举报