It is a bug?
Sorry if it's not the good discution here but I don't find the good one.
I juste need to report something,
I use a QString, I translate it with .toAscii(). So now I have a QByteArray and everything is good.
I need a char* so I use .data() and after this method, the first caractere is changed and on vi it's ^@.
I don't know exactly what is this caractere. So in my case, the data function make a bad thing and I don't find something in the documentation.
I can't keep this problem for me in case of it's a bug and not a bad manipulation.
No, it is not a bug in Qt, it is a bug in your code. And this has been discussed before many times here. It is also explained in the "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa.
Ok thank you, I got it now.