Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
hey folks,
i have code here where QFile is initalized like
QFile = QString("Path/to/a/file.txt"); it works in the header file but when i try it in the .cpp file it throws an error... how can that be ?
@rock37 what is the error message?The code you included is not valid C++ so not sure how it worked for you at all.
If you need a QFile variable in cpp file, you can use this:
QFile file("path.to/file.txt");