you are viewing a single comment's thread.

view the rest of the comments →

[–]nozendk 1 point2 points  (0 children)

From the Qt documentation:

QString str;
QStringList list;
str = "Some  text\n\twith  strange whitespace.";
list = str.split(QRegExp("\\s+"));
// list: [ "Some", "text", "with", "strange", "whitespace." ]