hello, i was creating a basic and create a private QFile * and QTextStream * in my class because i wanted to use them inside slots, but i realized that i was able to open, read and even create files but was not able to write to them, after some tests i decided to use a QFile inside every slot (read the file and write contents into a QTextEdit when a button is pressed, save the file when other button is clicked, etc) that is just used inside the function and then deleted, and i were able to write to files using the QFile, but not the QFile *, i will contine using QFile but i want to know why i cant write to files using a QFile *, thanks




Reply With Quote
Bookmarks