[Interest] Destructor of QThread is not virtual in 4.7.1

william.crocker at analog.com william.crocker at analog.com
Thu Aug 1 22:52:34 CEST 2013


On 08/01/2013 01:54 PM, Giuseppe D'Angelo wrote:
> On 1 August 2013 19:50, Bill Crocker<william.crocker at analog.com>  wrote:
>>
>>
>> Note that QThread already has a virtual member function, run(),
>> so this would not be it's first.
>>
>> Is true?
>
> No. QThread inherits from QObject, which has a virtual dtor. That's
> enough for making any subclasses' dtor virtual.
>

Grrr. Yes, of course. Embarrassing. I should have known that.

I guess I was so excited to have found *something*
that would bring my latest quest to an end that
I just stopped thinking. Back to the drawing board.

Thanks.

Bill




More information about the Interest mailing list