Import and export database
-
Now, I have a database in Qt, I wanna save it in a file when I close my app and import it in this app when I start it. How can I do it
-
Hi,
Can you explain a bit more ?
Do you mean you have a pre-existing database and read that database and store those contents in a file ? Or any other ? -
I'm sorry about it
yes, I create one app use database and I can't save any thing when I close it
now I want to save it in a file .txt and import it when this app start like MySQL Query dump and import. Can you show me a clearly code for it
thank u so muck -
Have a look at "QFile":http://doc.qt.io/qt-5/qfile.html#details class. It is meant for File handling purposes.
-
finally, i can solve it.
thank u very much