qstring find
-
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 aQStringyou doQString tt = words[0].toString();.