PDA

View Full Version : How to remove whitespace in qstring in beginning?



Gokulnathvc
20th August 2012, 07:54
How to remove whitespace in qstring in beginning? I would like to get the input as. some numbers separated by whitespaces. For instance

" 12345 086867 9974"?

How to remove those spaces that are only at the beginning of the qstring?

ChrisW67
20th August 2012, 08:16
Look at QString::trimmed(), QString::mid(), QString::replace() ...