I have a QTreeWidget which shows data about graphics items and top level items are like groups which have different graphics items... attaching a snapshot of the treewidget.
The tree displays info about items positions and names... I want to update the tree when items are moved (as items pos is displayed in the tree). How do I map the nodes of tree to the GraphicsItems ?? I mean how do i obtain a pointer to the GraphicsItem based on the node clicked in the tree ?? and how to refresh the data in the tree based on movements in the scene ??
One method I found in the search forums was to subclass QTreeWidgetItem and have the desired info in it...is it a good one ??
Please suggest...
Bookmarks