QListwidget item with mousedoubleclicked
i am using a QListWidget and I have some text in it...i need to know how to make the user double click any item on the list so that i get its index..thx in advance
If you want to receive double click event to process you should try to use doubleClicked(QModelIndex) signal and then process it in your custom slot.
I'm not sure if that's what you looking for, so in case you want to assign int number to the list item you can do it by setting role Qt::UserRole+1 with value using setData( int role, const QVariant & value) method and then retrieve it when processing the signal.
Hope that helps