First of all read this:

http://www.qtcentre.org/forum/faq.ph...ot_with_values

Second of all provide a custom slot where you will check which item was clicked and act accordingly.