mardi 20 janvier 2015

Qt5: How to read/write the file in local file system


Vote count:

0




I'm new to Qt.In my app,I want to press a button and it will come out a QFileDialog to let me select the file in file system .So how to do that?


After that , here is my problem, I don't know which API in Qt works just like "open" in POSIX ? I think if I can open the file in the right way , this API will return me a file descriptor and I can read/write this file like open did in posix.


I read some documents and found some classes such as QFile QDataStream but I don't know if they are exactly what I want.



asked 1 min ago







Qt5: How to read/write the file in local file system

Aucun commentaire:

Enregistrer un commentaire