Basically, what I have is the following :
A QListWidget, with some items in it like this :
ListMail
is my QListWidget.
In this QListWidget, I have elements like : "Mail 1", "Mail 2", ...
And I don't have any idea, how can I make a signal on (for example) "Mail 1" bind to a slot(onClick) or something like that.
I already tried things like :
connect(ui->listMail->selectedItems(0), SIGNAL(triggered()), this, SLOT(openMessage())
, but it doesn't work at all...
Any help ?
Thanks !