Hi,

I wrote the following piece of code to read the file data;

Qt Code:
  1. QFile* LoggerManager::getLogFile()
  2. {
  3. if(_logFile.exists() &&
  4. _logFile.isOpen() &&
  5. _logFile.isReadable() &&
  6. (_logFile.size() > 0))
  7. {
  8. return &_logFile;
  9. }
  10.  
  11. return NULL;
  12. }
  13.  
  14. LoggerManager::getInstance()->getLogFile()->readAll()
To copy to clipboard, switch view to plain text mode 

But it returns me 0 all the time although the file is loaded(about 200 KB)

Any ideas?