【发布时间】:2022-01-19 22:40:18
【问题描述】:
ui -> tablica -> item(i, j) -> text().toInt(&f1);
if(f1)
{
ui -> tablica -> item(i, j) -> setBackgroundColor(Qt::white);
}
setBackgroundColor 方法出错。
【问题讨论】:
-
setBackgroundColor似乎已从 Qt6 中删除,因为QTableWidgetItem的过时成员不再列在 documentation 中。