Does
Qt Code:
  1. QString result = value.remove(QChar('\0'));
  2. //or
  3. QString result = value.remove(QChar(QChar::Null));
To copy to clipboard, switch view to plain text mode 
Work?