Switched to QMutexLocker.