qstring find
Unsolved
General and Desktop
-
QVector<QStringRef> words = a.splitRef('/');
-
@s002wjh Yes. Obviously check first if the vector actually has 2 elements in case there's no
/
in the string. -
words[0]
is aQStringRef
, so to assign it to aQString
you doQString tt = words[0].toString();
.