I would like to permit the user to be in the following situation:
select.png
So he understands that he is editing the name of ONE item but he will change the name of all the selected ones (where "enter name" is written).
I've created the situation with the mouse but I cannot do it via software but I guess that, if I can do it with the mouse, it should be possible also via code.
I'm at the point where I have a vector of items that will be selected (QVector<QTableWidgetItem*>) before I call ui->tableWidget->editItem(editItem);
I've tried going through the vector and call
but it doesn't work (it crashes indeed).Qt Code:
m_ItemsToEdit.at(i)->setSelected(true)To copy to clipboard, switch view to plain text mode
I've seen that I should use a selectModel but I cannot find an example...
Somebody knows how to solve the problem ?
Bookmarks