m_pProgamWindow->setText(text); //where text is QString and m_pProgamWindow is object of text editor