Qt探索之路——获取QTextEdit文本内容

   int buf_OUT[65];
    QString sendStr = ui->sendTextEdit->toPlainText();
    for(int i = 0;i < sendStr.length();++i){
        QChar t = sendStr.at(i);
        buf_OUT[i] = t.toLatin1()-'0';

    }
posted @ 2017-04-10 15:09  shawn06  阅读(22130)  评论(0编辑  收藏  举报