removeEntry
阅读原文时间:2023年07月14日阅读:2

void VCGantt::removeEntry()
{
QModelIndexList selectedIndexes = ganttViewCommon->selectionModel()->selectedIndexes();
QModelIndex index = selectedIndexes.value();

if (!index.isValid())  
    return;

qDebug() << "remove:" << index.row();  
ganttModel->removeRow(index.row(), index.parent());  

}