QString str = m_timeLineEdit->text();
QDateTime time = QDateTime::currentDateTime();
QString str = time.toString("yyyy-MM-dd");
QFile data(str+".txt");
if(data.open(QFile::WriteOnly | QFile::Truncate))
{
QTextStream out(&data);
out<<m_showTextEdit->toPlainText();
}
data.close();
005 如何获取QlineEdit/QtextEdit上的文本?如何输出文本到文件?
最新推荐文章于 2024-09-13 17:57:14 发布