我嘗試的方案選擇QStandardItemModel的所有coulmns和更改油漆我只有第一列出5 QStandardItemModel
我有這個的所有列的背景顏色,該行包含QT如何選擇和改變
// getting the rows
QStandardItem* standardItem = m_model->item(i);
//set the color i like all the row to be painted
standardItem->setBackground(QBrush(QColor(255,0,0)));
也許你應該更加緊密地解釋一下你的模型實際上是如何設置的...(如果它不是一個連續的行x列表 – 2010-05-31 13:38:23