It turns out that the elements themselves also have a mutable flag, so after adding them, I had to sort through all of them and install. Now it works.
// set the editable flag for each item for (int ii = 0; ii < ui->listWidget->count(); ii++) { ui->listWidget->item(ii)->setFlags(ui->listWidget->item(ii)->flags() | Qt::ItemIsEditable); } // set the editable triggers for the list widget ui->listWidget->setEditTriggers(QAbstractItemView::AnyKeyPressed);
source share