Year: 2012

Qt : Convert QString to char

Qt : Convert QString to char QString have very much feature compared with char data type. But, in some of conditions, we need to Qt : convert QString to char datatype. This is a sample function how Qt : Convert QString to char datatype : const char *QString2char(QString str) { QByteArray byteArray; const char *cstr;