PDA

View Full Version : How to terminate NULL character ?



merry
7th July 2008, 12:12
Hi all

I am working on Qt4.3 on using Windows Operating System.

I am having a QString which contains NULL characters, Howt to terminate that NULL characters from QString.

aamer4yu
7th July 2008, 13:50
What do u mean terminate ?? If you mean remove, u can use QString::remove()

merry
8th July 2008, 12:47
yes I want to remove NULL characters from the QString and the NULL character is represented by this symbol [] in the string foreg. QString str = "Whats going on []"

and i want to remove this symbol from the QString. How to do this?

jacek
8th July 2008, 20:01
How do you create that QString? Also read carefully aamer4yu's post.