Quantcast
Channel: How to change the text color of items in a QListWidget? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by ManuelSchneid3r for How to change the text color of items in a...

This can also be done by stylesheets. E.g.:QListWidget::item { color:#00ff00; background-color:transparent;}Set it by setStylesheet(...)

View Article



Answer by PiedPiper for How to change the text color of items in a QListWidget?

QListWidget t;t.addItem("first");t.addItem("second");t.item(0)->setForeground(Qt::red);t.item(1)->setForeground(Qt::blue);

View Article

How to change the text color of items in a QListWidget?

I want to change the text color of the items in QListWidget.For example, some items are in red text while others are in blue text. How do I do that? Thank you.

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images