GREAT THANKS! It helped me. This code resolve this problem:
/// Поиск в левом списке номера, часть (или он весь) которого отражена в new_SN
void LicenceBuilder::findLeftSN(const QString& new_SN)
{
// after phrase What to do??????
QModelIndexList indexList = model.match(model.index(0, 0), Qt::DisplayRole, selList.first());
listDBNumbers -> setCurrentIndex(selectedIndex);
}
/// Поиск в левом списке номера, часть (или он весь) которого отражена в new_SN
void LicenceBuilder::findLeftSN(const QString& new_SN)
{
// after phrase What to do??????
QModelIndexList indexList = model.match(model.index(0, 0), Qt::DisplayRole, selList.first());
QModelIndex selectedIndex(indexList.first());
listDBNumbers -> setCurrentIndex(selectedIndex);
}
To copy to clipboard, switch view to plain text mode
Bookmarks