如何让QListWidget每个item中个别字用不同颜色显示

2025-04-29 12:29:55
推荐回答(1个)
回答1:

listWidget->item(current_item)->setBackgroundColor(QColor(248,168,0)); 这个就可以实现你的效果;