QTableWidgetSelectionRange QTableWidget::selectedRanges()
QTableWidgetSelectionRange 类存储了选中单元格的左上、右下单元格的行列值。
formulaLabel->setIndent(3); // 缩进
statusBar()->addWidget(locationLabel); // 伸缩因子0,意味着不喜欢被拉伸。
statusBar()->addWidget(formulaLabel, 1); // 伸缩因子1,窗体size 改变时被扩展
QApplication::setOverrideCursor(Qt::WaitCursor);
QApplication::restoreOverrideCursor();
return static_cast<Cell *>(item(row, column)); // QTableWidget::item()
int r = QMessageBox::warning(this, tr("Spreadsheet"),
tr("The document has been modified./n"
"Do you want to save your changes?"),
QMessageBox::Yes | QMessageBox::Default,
QMes