QString解包


使用QString的section函数

QString str = "123,,576";

cout str.section(",,",0,0);
cout str.section(",,",1,1);
cout str.section(",,",0,1);