[Qt-interest] QObject::disconnect() Return Value

Scott Bloom scott.bloom at onshorecs.com
Thu Jul 1 04:25:36 CEST 2010


Without looking at the code, I was only coming up with examples of why it
might fail...

There may be other reasons.

Scott


On 6/30/10 7:24 PM, "Jeffery MacEachern" <j.maceachern at gmail.com> wrote:

> Am I understanding you correctly, then, that it will only fail if the
> developer has messed up, and not due to some error state of the
> program itself?
> 
> On Wed, Jun 30, 2010 at 7:14 PM, Scott Bloom <scott.bloom at onshorecs.com>
> wrote:
>> > If the signal or slot declarations are bad (have a variable etc) or if the
>> > signal or slot doesn't exist.
>> >
>> > Scott
>> >
>> >
>> > On 6/30/10 6:22 PM, "Jeffery MacEachern" <j.maceachern at gmail.com> wrote:
>> >
>>> >> The Qt documentation states that QObject::disconnect() "Returns true
>>> >> if the connection is successfully broken; otherwise returns false.".
>>> >> In what type of situation would it fail to disconnect?  I don't recall
>>> >> seeing the return value checked in any example code that I have read.
>>> >>
>>> >> - Jeffery MacEachern
>>> >> _______________________________________________
>>> >> Qt-interest mailing list
>>> >> Qt-interest at trolltech.com
>>> >> http://lists.trolltech.com/mailman/listinfo/qt-interest
>> >
>> > _______________________________________________
>> > Qt-interest mailing list
>> > Qt-interest at trolltech.com
>> > http://lists.trolltech.com/mailman/listinfo/qt-interest
>> >
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100630/1e17454b/attachment.html 


More information about the Qt-interest-old mailing list