Solved Coloring the text inside the listwidget
-
I am taking a list widget with background color is black and listwidget containing the image and text. But when I try to display the list widget the image will display but the text disappears. I want to set the listwidget text color to white. How could I do this????
-
-
An alternative that works for all
QAbstractItemModel
s islistwidget->model()->setData(listwidget->model()->index(rowNumber,0),Qt::white,Qt::ForegroundRole);
-
thanks to all its working