Hi,
Try Using QPair http://doc.trolltech.com/4.2/qpair.html
You can use this class to connect two values of the lists.
Iterate trough the frist list and the second and create another list
of QPairs (from the selected names) that will connect the values.
If you have a gui (lets say two list widgets) you'll just
have to go trough the lists, see whats selected and
create the list.
This way you'll get linear structure which is easy to handle.
Another way using QPairs is to create a list where
the frist element is the name/index of the element of the
first list and second element will be a list of names/indexes
of the elements from the second list that are connected
to that element from the first list.
GREETZ, chombium
Bookmarks