On Wed, Oct 31, 2007 at 11:47:24AM -0500, Bo Peng wrote: > > Supposedly you have the information in the form of a KeySequence somewhere. > > But I can not attach KeySequence to an QTreeWidgetItem, because The > UserRole is taken by item_type.
Using UserRole+1 ... INT_MAX is not exactly forbidden. And thanks to QVariant you could also store whole struct in a single role... Andre'