How can you cut a string up to a certain number character C++ QT
Solved
General and Desktop
-
You ask for something equivalent to
slice()
(in javascript right?), that's it. It doesn't care the characters are numbers or not.
mid(2)
will just get you a substring from index 2 to the end of the string.
And Qt hasQString::toInt()
,QString::toUInt()
,QString::toLong()
, etc.. -
You ask for something equivalent to
slice()
(in javascript right?), that's it. It doesn't care the characters are numbers or not.
mid(2)
will just get you a substring from index 2 to the end of the string.
And Qt hasQString::toInt()
,QString::toUInt()
,QString::toLong()
, etc..