翻译You can let the user edit table cells by providing an edit delegate The edit delegate will be instantiated according to the editTriggers which by default is when the user double taps on a cell or pr
您可以通过提供一个编辑委托来允许用户编辑表格单元格。编辑委托将根据编辑触发器进行实例化,默认情况下是当用户双击单元格或按下例如Qt::Key_Enter或Qt::Key_Return时。使用TableView::editDelegate来设置编辑委托,它是一个设置在委托上的附加属性。以下代码片段展示了如何实现这一点:
原文地址: https://www.cveoy.top/t/topic/hJWX 著作权归作者所有。请勿转载和采集!