Qt 從LineEdit中得到中文漢字輸入.

#include <QtCore/QTextCodec>ui ... ...spa QString text = QTextCodec::codecForName("GBK")->fromUnicode(ui->inputEdit->text());code char* ss = text.toAscii().data(); ... ...ci
相關文章
相關標籤/搜索