ui -> tablica -> item(i, j) -> text().toInt(&f1);
if(f1)
{
ui -> tablica -> item(i, j) -> setBackgroundColor(Qt::white);
}
setBackgroundColor方法出錯。
ui -> tablica -> item(i, j) -> text().toInt(&f1);
if(f1)
{
ui -> tablica -> item(i, j) -> setBackgroundColor(Qt::white);
}
setBackgroundColor方法出錯。
公眾號:1024技術圈
?? 提供互聯網知識和資訊,分享IT前沿技術,熱門資源,大廠面試題 ??
用法:void QTableWidgetItem::setBackground(const QBrush和brush)
看這里為什么:
https://doc.qt.io/qt-5/qtablewidgetitem-obsolete.html#setBackgroundColor