Hello, the method save_screenshot() is used to save a QImage object using bool QImage::save ( const QString<http://doc.crossplatform.ru/qt/4.6.x/qstring.html>& *fileName*, const char * *format* = 0, int *quality* = -1 ) const
Howver, it appears that QImage is working with one I/O device and returns false if it's busy, i.e. a thread paused at a moment of executing the save method. Is it better to use bool QImage::save ( QIODevice<http://doc.crossplatform.ru/qt/4.6.x/qiodevice.html>* *device*, const char * *format* = 0, int *quality* = -1 ) const method instead with its own I/O device for each thread or to create QMutexLocker in the save_screenshot() method?
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest