PDA

View Full Version : how to split a big string?



aurora
21st February 2012, 05:39
Is there any inbuilt function in qt which splits a string..
I know split function is there, using this we can split string on white char or some regexp.
But i need to split a string of 1000 char into 10 strings of each 100 char....
How can i do that?

ChrisW67
21st February 2012, 05:57
QString::left(), QString::mid(), and QString::right() are fairly obvious.

aurora
21st February 2012, 06:10
Thank u got it...:)