[Interest] QGraphicsObject::boundingRect() called with different instance

Bob Hood bhood2 at comcast.net
Thu Oct 31 01:55:04 CET 2019


(Sorry for the slow reply.  F#@$ing Comcast decided yesterday that all my 
mailing list traffic was Spam.)


On 10/30/2019 5:17 AM, Giuseppe D'Angelo via Interest wrote:
> On 30/10/2019 01:47, Bob Hood wrote:
>> When I enter the constructor, I have a specific ‘this’ pointer that has the 
>> provided ‘size’ argument placed into its ‘entity_size’ member. However, 
>> when Qt subsequently invokes the boundingRect() override function, it’s an 
>> entirely different ‘this’ instance whose ‘entity_size’ has clearly not been 
>> initialized.
>>
>> I’ve looked at several select examples/widgets/graphicsview/ sources, and 
>> those show that this should be working as expected.
>>
>> I’ve tested this with 5.11.1 and 5.12.3 with the same result, so I’m 
>> guessing this is some kind of pilot error on my part.
>>
>
> Did you already run this code into valgrind / ASAN?


Thanks for the reply, Giuseppe.

I'm on Windows using Qt Creator 4.6.2.



More information about the Interest mailing list