Results 1 to 4 of 4

Thread: How to terminate NULL character ?

  1. #1
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default How to terminate NULL character ?

    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.
    Always Believe in Urself
    Merry

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to terminate NULL character ?

    What do u mean terminate ?? If you mean remove, u can use QString::remove()

  3. #3
    Join Date
    Jan 2007
    Posts
    326
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: How to terminate NULL character ?

    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?
    Always Believe in Urself
    Merry

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to terminate NULL character ?

    How do you create that QString? Also read carefully aamer4yu's post.

Similar Threads

  1. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 15:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.