Linking QListViewItem to a struct or class

Laurent Cortier laurent.cortier at chello.be
Sun Mar 18 17:37:10 GMT 2001


Hello there,

I'm working on a mySQL frontend for KDE with KDevelop 1.4 and Qt 2.2.4.
I have a QListView with databases (among other things) as QListViewItem.
I'd like to attach a pointer to a structure containing more info about the 
selected item... Now in most RAD tools under Windows (Delphi for example, so 
probably in Kylix too), you have a pointer to an object in the listviews 
classes, but I haven't seen that in Qt...

Anyone got an idea to realize this ?

I thought about implementing a list on the side, but then how do I index it 
on the listview items ? And it's boring to have to implement a complete array 
architecture on the side of the ListView...

Help :)

Laurent Cortier
http://www.dsimprove.be

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list