I have this type of problem. On printWidget with printDialog inserting file in database. Opening (putting on QDir::tempPatch() )it I can it edit and so on. On save I am checkink modified date. But now I need to open file (for example *doc) , close my printWidget, open for example serviceOrderWidget, close it, go to my opened *doc file, editing it, and saving. When the my program need to ask me want i to save edited file.
How can i check is this program(file with *.doc) closed? Now i opening it
Qt Code:
void FileWidget::on_openButton_clicked() { f.write(record->getValue("file", "content").toByteArray()); f.close(); firstDate=info.lastModified(); //qDebug()<<firstDate;To copy to clipboard, switch view to plain text mode
Bookmarks