try the following un-tested code;

QString str ="ABCDEFGHIJK";
unsigned char* uca;

uca = new unsigned char[str.length()];
for(int i=0; i<str.length(); i++) uca[i] = str.substr(i,1);

cout<<uca<<endl;

delete [] uca;

comlink21