C++ (Qt)QString a = ui->textEdit->toHtml();ui->textBrowser->setHtml(a);
C++ (Qt)QString a = ui->textEdit->toPlainText(); a.replace("a","b").replace("b","a"); ui->textBrowser->setPlainText(a);
C++ (Qt)void ReplaceAB( QString & s ){ for (int i = 0; i < s.size(); ++i) if (s[i] == 'a') s[i] = 'b'; else if (s[i] == 'b') s[i] = 'a';}
C++ (Qt) case QXmlStreamReader::EndElement: if (inBody) inBody = true;
C++ (Qt)if (inBody) inBody = true;