I'm writing log files and would like to set a size limit of 10 Mo.
I was thinking of setting a QTimer
triggering every X minutes/hours QFileInfo::refresh and checking the size of the file.
Would there be a better way to do this? Using a QTimer
sounds painful and resource-costly to me. I wish I could use a SIGNAL
when the limit size is reached.