22 QString str = QFileDialog::getOpenFileName();
28 if (file.open(QIODevice::ReadOnly)) {
29 QTextStream stream(&file);
30 setPlainText(stream.readAll());
41 if (m_strFileName.isEmpty()) {
46 QFile file(m_strFileName);
47 if (file.open(QIODevice::WriteOnly)) {
48 QTextStream(&file) << toPlainText();
57 QString str = QFileDialog::getSaveFileName(0, m_strFileName);
void changeWindowTitle(const QString &)
DocWindow(QWidget *pwgt=0)