LinkedItems is vector of pointers to QGraphicsItem, so i should in QGraphicsItem class declare friend node class. The best way is to create myItem class which inhertis QGraphicsItem, and has friends (Node, Line, etc.). Then node and line classes inherits myItem. I think that that would do the trick.
Qt Code:
  1. class itdItem : public QGraphicsItem
  2. {
  3. friend class itdLine;
  4. friend class itdNode;
  5. }
  6. class itdLine : public itdItem
  7. class itdNode: public itdItem
To copy to clipboard, switch view to plain text mode 
now i can create in each (new or existing) object a list of pointers to linked items. cool

thank you for your friendly friend suggestion