Hi all,
I want to be able to convert my QString in unicode format and the convert it in char*.

I have try with the following code but I have a casting problem (my QByteArray contains only the first character).

Qt Code:
  1. QByteArray xByteArray((const char *)qsTmp.unicode(), qsTmp.size()*2);
To copy to clipboard, switch view to plain text mode 

Any Suggestions?

with regards, Dax