Maison  >  Questions et réponses  >  le corps du texte

c++ - qt 如何用 QTextEdit显示cout输出的内容

阿神阿神2715 Il y a quelques jours679

répondre à tous(1)je répondrai

  • 黄舟

    黄舟2017-04-17 14:48:56

    textEdit 可以接收 QString 类型的, 所以要转换一下. 转换不麻烦的.

    QString qsStr = QString(char *);
    textEdit->append(qsStr);

    répondre
    0
  • Annulerrépondre