Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Handle QListWidget click

$
0
0
Hello, I have would like to handle a click in QListWidget. When I click on some other song, current song should stop playing and clicked one should start. I connected SIGNAL clicked with my slot, but don’t know how to get index of clicked item and then send that to player… connect(ui->listWidget1, SIGNAL(clicked(QModelIndex)), this, SLOT(updateSong()));

Viewing all articles
Browse latest Browse all 13965

Trending Articles