View Single Post
Posts: 13 | Thanked: 0 times | Joined on May 2010
#4
Here's the code I have problems with:

Code:
selectList->connect(selectList, SIGNAL(currentRowChanged(int)), this, SLOT(ChangeEffect()));

void MainWindow::ChangeEffect()
{
    soundfile = playItems.at(selectList->currentRow());
    player->setMedia(QUrl::fromLocalFile(soundfile));
}
I went from the signal itemSelectionChanged to itemChanged to currentRowChanged they all behave the same way, the currentRow changes when I scroll.