I was trying to convert a QString to char* type by the following methods, but they don\'t seem to work.
//QLineEdit *line=new QLineEdit();{just to describe w
the Correct Solution Would be like this
QString k; k = "CRAZYYYQT"; char ab[16]; sprintf(ab,"%s",(const char *)((QByteArray)(k.toLatin1()).data()) ); sprintf(ab,"%s",(const char *)((QByteArray)(k.toStdString()).data())); sprintf(ab,"%s",(const char *)k.toStdString().c_str() ); qDebug()<<"--->"<