#include <QtCore/QTextCodec>
... ...
QString text = QTextCodec::codecForName("GBK")->fromUnicode(ui->inputEdit->text());
char* ss = text.toAscii().data();
... ...
#include <QtCore/QTextCodec>
... ...
QString text = QTextCodec::codecForName("GBK")->fromUnicode(ui->inputEdit->text());
char* ss = text.toAscii().data();
... ...