Cool, thanks for digging into it a little more.
Thanks for the tip on stroking the path for shape(), though I already do that
as demonstrated in qgraphicsitemc.cpp - I just removed it from the example code
I posted here :)
Here is a video of it still not working but with your debug code:
On 26 June 2017 at 14:57, Patrick Stinson wrote:
> Thanks for the important tips, I wasn’t aware of any of them! I implemented
> all of them.
>
> Unfortunately it is still selecting based on boundingRect. Any other
> thoughts?
Then the path returned by your shape() is
On 26 June 2017 at 14:58, Patrick Stinson wrote:
>
>> On Jun 25, 2017, at 4:51 PM, Christian Gagneraud wrote:
>>
>> On 26 June 2017 at 05:10, Patrick Stinson wrote:
>>>def update(self, *args):
>>>if None in self.people:
> On Jun 25, 2017, at 4:51 PM, Christian Gagneraud wrote:
>
> On 26 June 2017 at 05:10, Patrick Stinson wrote:
>>def update(self, *args):
>>if None in self.people:
>>return
>
> you're missing a call to prepareGeometryChange()
>
Thanks for the important tips, I wasn’t aware of any of them! I implemented all
of them.
Unfortunately it is still selecting based on boundingRect. Any other thoughts?
> On Jun 25, 2017, at 5:00 PM, Christian Gagneraud wrote:
>
> On 26 June 2017 at 05:10, Patrick Stinson
On 26 June 2017 at 05:10, Patrick Stinson wrote:
>
> Hi there!
>
> I have a simple QGraphicsItem which draws the left, bottom, and right borders
> of it’s bounding rect. I am painting the item by creating a QGraphicsPath
> from top-left => bottom-left => bottom-right =>?
On 26 June 2017 at 05:10, Patrick Stinson wrote:
> def update(self, *args):
> if None in self.people:
> return
you're missing a call to prepareGeometryChange()
> a = self.mapToScene(self.people[0].bottomCenterScene())
> b =