hi,

i want to implement a message system where the message formats are stored in a treewidget. i have created the treewidget and the items with the designer. the structure is as the following:

message group1
- message type 11
- message type 12
- message type 13
message group2
- message type 21
- message type 22

when i choose a message from the widget and click `new message` i want to open a dialog box related to the message type.

my problem is that, in the designer, i cannot set an object name for te treewidgetitem's and the only way i have seen is to compare the treewidgetitem's name when the message type is selected and open the dialog box.

is there any other way to identify the items selected in the treewidget ?

sami