QString strTest = "SHUT\nDOWN";
QStringList slstLines = strTest.split("\n");
In the above example I would expect the String list to contain two entries, but it only contains 1, which is the same as the strTest...why isn't split working?
I've also tried:
QStringList slstLines = strText.split(QRegExp("[\n]"), QString::SkipEmptyParts);
The result is the same.