I'm not sure if this result is relevant:
Now the loop is not entered at all, i.e. partFile->canReadLine() returns false from the beginning. This happens on Linux!Qt Code:
while (partFile->canReadLine()) { line = partFile->readLine(); /* Do stuff with "line" */ }To copy to clipboard, switch view to plain text mode
When I open the file with an editor, I see newlines, so I must be doing something wrong here.
For completeness: partFile is a QTemporaryFile written by some other thread that passes the partFile pointer to this thread (the one that's is doing the reading) trough a queue system.
I am absolutely clueless here. Is there any behaviour of QIODevice, QFile or QTemporaryFile that I'm overlooking?




Reply With Quote




Bookmarks