QTreeWidgetItem *familyItem = new QTreeWidgetItem(fontTree);
familyItem->setText(0, family);
familyItem->setCheckState(0, Qt::Unchecked);
familyItem->setBackground(0,QColor(202, 0, 0, 255));
I want to color each item,but setbackground is changing only the color of first item.Any guess,why its not painting the item?.Looking for help
Bookmarks