[Qt-interest] customised signals and slots in qt

Bill Crocker william.crocker at analog.com
Fri Jul 8 04:10:59 CEST 2011


>>
>> Connect(object_a, SIGNAL( signal1()),object_b, SLOT(slot1()));
> 
> That should be:
> 
>    connect(object_a, SIGNAL(signal1()), object_b, SLOT(slot1()));
> 

No, that should be:

     if( !connect(object_a, SIGNAL(signal1()), object_b, SLOT(slot1())) )
         Q_ASSERT(false);





More information about the Qt-interest-old mailing list