Hi ppl,
I need to convert a QString to a unsigned char array. I've already searched the forums & did some google reasearch but somehow failed to find a working solution 
I had no probs to convert the QString to a normal char array:
QString str
= "somestring";
// data comes from a db in my case int length = str.length();
char *sequence = NULL;
sequence = new char[length+1];
strcpy(sequence, str.toLocal8Bit());
QString str = "somestring"; // data comes from a db in my case
int length = str.length();
char *sequence = NULL;
sequence = new char[length+1];
strcpy(sequence, str.toLocal8Bit());
To copy to clipboard, switch view to plain text mode
i think the "unsigned" solution is also pretty simple, but somehow i can't figure it out???
please help...
thx
Bookmarks