Thanks to Qt Forum
Below help us to get Char* out from QString and the other way around:
QString inputString = "hello";
QByteArray byteArray = inputString.toUtf8();
const char* cString = byteArray.constData();
QString qString2 = QString::fromUtf8(cString);