March 2019
Intermediate to advanced
428 pages
10h 27m
English
To learn how to save data into an XML file using the QDomDocument class, let's do the following:

void MainWindow::on_saveXmlButton_clicked() { QString filename = QFileDialog::getSaveFileName(this, "Save Xml", ".", "Xml files (*.xml)"); QFile file(filename); if (!file.open(QFile::WriteOnly | QFile::Text)) { qDebug() << "Error saving XML ...Read now
Unlock full access