QMutexLocker not locking QMutex
QMutexLocker not working when locking the thread.

 - Answer:

        void foo() {
             // QMutexLocker(&mutex); // wrong, it will not just lock and unlock
             QMutexLocker locker(&mutex); // right, it will lock until the 'locker' scope ends
             ...
        }


   
QMutexLocker not locking QMutex
===

QMutexLocker not working when locking the thread.

 - Answer:

        void foo() {
             // QMutexLocker(&mutex); // wrong, it will not just lock and unlock
             QMutexLocker locker(&mutex); // right, it will lock until the 'locker' scope ends
             ...
        }


   