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());
}
手机扫一扫
移动阅读更方便
你可能感兴趣的文章