Getting the fourth line QString
Unsolved
General and Desktop
-
@MrErfan
QStringList list = str.split("\n");
return list[3];Have a look at the overloads of http://doc.qt.io/qt-5/qstring.html#split to decide just what you want to split on, e.g. perhaps a
QRegExp
.EDIT: P.S.
split()
does not scale optimally if you have, say, a million+ lines instr
--- let us know if that is a possible factor ;-)