[Qt-interest] How to see a part of the QStringList
Stefanos Antaris
santaris at csd.auth.gr
Sat Apr 25 23:18:53 CEST 2009
Hello.I want to split the string into smaller strings.I used the split
function but now i want to show into my GUI only some parts of the
QStringList.I have made the following code but the GUI crash.
[code]
QStringList list=currentFortune.split(",");
QString sensor1string=list[0];
sensor1->setText(sensor1string);
QString sensor2string=list[1];
sensor2->setText(sensor2string);
QString sensor3string=list1[2];
sensor3->setText(sensor3string);
QString sensor4string=list1[3];
sensor4->setText(sensor4string);
QString sensor5string=list1[4];
sensor5->setText(sensor5string);
[/code]
Can anyone tell me how could i do this?Thanks in advance.
More information about the Qt-interest-old
mailing list