Converting QString to char*
How to convert QString to char*?
"How can I convert a QString to char* and vice versa?":http://developer.qt.nokia.com/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa
You can refer to "QByteArray::data":http://doc.qt.nokia.com/latest/qbytearray.html#data which has example code.
This was asked 100 times here on dev net. Please refer to FAQ as posted by cincirin or use the forum search. Thanks a lot.