代码是
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
ui->setupUi(this);
QTextEdit *textEdit=new QTextEdit(this);
```错误是:27: error: 'class Ui::MainWindow' has no member named 'textEdit'
ui->textEdit->setText(string);
^
`求解答要怎么改