How to set values in QByteArray? I want to assign 44 length to Bytearray.

I have used
Qt Code:
  1. buf.resize(44);
To copy to clipboard, switch view to plain text mode 
I want those 44 bytes to be zero. how to assign this.