It seems that QFile doesn't emit any signals, although QIODevice docs suggest it should. I've tried to make it work with QSocketNotifier, but it didn't work well.
You can make it work by implementing some loop that will check whether there is no data to be read and run QCoreApplication::processEvents() (remember to use non-blocking operations on the file) or using QTimer to check for new characters periodically.




Reply With Quote


Bookmarks