QT how to select and change all coulmns of QStandardItemModel
Posted
by user63898
on Stack Overflow
See other posts from Stack Overflow
or by user63898
Published on 2010-05-31T11:26:55Z
Indexed on
2010/05/31
11:33 UTC
Read the original article
Hit count: 304
Hello
im trying to programmatic select and change the background color of all the columns of QStandardItemModel
i have this that paint me only the first column out of 5 that the row contains
// 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)));
© Stack Overflow or respective owner