I try to add an item in a list widget to another list widget when the button is clicked.I connected slot and signal.Then I wrote the code into called move function .My attempt is
ui->topListWidget->addItem(ui->bottomListWidget->currentItem());
However it doesn’t work. How can I do this or what’s the problem of my code?
//move existing item
//add copied item