Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.
How to keep updating QTextEdit from log file
I have a log file that keeps on growing. I want the QTextEdit to show the progress in log like tail -f command. I'm using pyqt
i've tried this
self.logpath = os.path.join(os.getcwd(), logfolder, fec_log.txt)
file = open(logpath)
i know this has a problem that it wouldn;t actually seem like streaming the logfile but it keeps reloading the file. But even that doesnt happen. logWatcher slot doesn get called, What could be the problem
Hi and welcome to devnet,
IIRC, QSocketNotifier is a better choice for such activities
Thanks. Wil try and update
I'm lost here. I'm on windows. How do i get the socket fd which is required argument for QSocketNotifier().