Already very thorougly answered but just to emphasis that the most reduced answer to your question is
Qt Code:
To copy to clipboard, switch view to plain text mode
Cheers,
_
Already very thorougly answered but just to emphasis that the most reduced answer to your question is
Qt Code:
To copy to clipboard, switch view to plain text mode
Cheers,
_
I've got everything fixed up, and have everything set up to get the file name and to open the file, but when I try to use this line of code,
QString line = Stream.readAll();
or this,
QString line = Stream.readLine(0);
'line' is empty. I've verified that it opened the file up without a problem, but somehow it thinks it's empty. The file is a text file with some random crap that I generated in notepad.
Why can't I get anything?
How can we possibly know? How have you opened the file? Have you already read anything form it? Is it the file you think you have opened or another? What is the relationship between the file you have opened and "Stream"?Why can't I get anything?
Bookmarks