[Qt-interest] ASSERT failure in QMutex::unlock(): "A mutex must be unlocked in the same thread that locked it."

Thiago Macieira thiago at kde.org
Sat Jul 17 13:41:51 CEST 2010


On Friday 16. July 2010 13.36.41 Sarvesh Saran wrote:
> connect(this,sendValue(int),a,setValue(int)));
> 
> later in the code I emit a signal:
> emit sendValue(10); 
> 
> I would like to know how this emit is different from:
> a->setValue(10) ?

It's no different. The effect is exactly the same.

Note how I removed from the quote the line in which you declared the variable 
"a". All that matters is that it's an object of a class derived from QObject 
-- it doesn't matter which.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100717/a50c1728/attachment.bin 


More information about the Qt-interest-old mailing list