#include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextEdit* mytext = new QTextEdit; mytext->setAcceptRichText(false); mytext->setReadOnly(true); mytext->setUndoRedoEnabled(false); mytext->setTextColor(Qt::black); mytext->append("14:41:51: 开始读取数据计算数据(v:2.8.3),请等待..."); mytext->show(); return a.exec(); }