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 !
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…