1  MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
2  {
3     ui->setupUi(this);
4     text = "Plain text:"
            " Qt creator is a modern framework"
            " We are learning the Qt programmin."
            " Text Edit is a widget for construct "
            " a word processor. If the Text Edit"
            " If the text is too large to view"
            " within the text edit's viewport, "
            " scroll bars will appear" ;
 5    ui->textEdit->setText(text);
 6    MainWindow::changeFont(12);
7  }