Hi,

I'm not completely familiar with the working of the flowchart, but believe 
it is still based on GraphicsItem/GraphicsScene like the rest of pyqtgraph. 
The trick then is that it is all based off Qt's 
QGraphicsItem/QGraphicsScene etc. So, looking at 
http://www.pyqtgraph.org/documentation/_modules/pyqtgraph/GraphicsScene/GraphicsScene.html#GraphicsScene
 I 
think the event hit boxes come from calling the shape() method inherited 
from QGraphicsItem (https://doc.qt.io/qt-5/qgraphicsitem.html#shape),  
which by default just returns the bounding rectangle.
So you could try looking at the examples in the Qt documents about how to 
return something different from the shape() method and override it in your 
custom Node/NodeGraphicsItem.

Hope that helps,

Patrick

On Thursday, 30 January 2020 10:08:25 UTC+10:30, Patrick Singh wrote:
>
> Hello there,
>
> I am currently working on introducing different kind of nodes to the 
> flowchart. For now, I can insert nodes in rectangular, triangular, and oval 
> shape. Nevertheless, the nodes hitboxes did not change and keep on being 
> rectangular. I have already tried to change the self.bounds attribute 
> accordingally, though I think that it is enforced being rectangular. Thanks 
> in advance for any hints.
>
> Best regards
> Patrick Singh
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/9d00d311-41c7-41b7-9df4-33a880155f88%40googlegroups.com.

Reply via email to