Re: [Interest] creating Networks of QGraphicsItems

2012-08-17 Thread Philipp Menke
> The "DiagramScene" example included with Qt should help. It has nodes > and arrows that are re-drawn when the nodes are moved. Check out > DiagramItem::itemChange in diagramitem.cpp and the Arrow class itself. > > d3fault > There i could find a solution! QGraphicsIcon has a method called it

Re: [Interest] creating Networks of QGraphicsItems

2012-08-16 Thread d3fault
The "DiagramScene" example included with Qt should help. It has nodes and arrows that are re-drawn when the nodes are moved. Check out DiagramItem::itemChange in diagramitem.cpp and the Arrow class itself. d3fault ___ Interest mailing list Interest@qt-pr

Re: [Interest] creating Networks of QGraphicsItems

2012-08-16 Thread Rainer Wiesenfarth
Am 16.08.2012 23:10, schrieb Philipp Menke: [...] I subclassed QGraphicItem for the various types of Nodes in such a Network (resistors, inductors, capacitors) and for the cables. Having two nodes connected with a cable looks good as long as i leave them on the position they have been that time.

[Interest] creating Networks of QGraphicsItems

2012-08-16 Thread Philipp Menke
Hi I want to write a Program to simulate electric networks. The (higher) math of Multi-dimensional Newton and ODEs is no problem but the WYSIWYG-like-network-editor: I subclassed QGraphicItem for the various types of Nodes in such a Network (resistors, inductors, capacitors) and for the cable