I want to configure listview in Qt, can someone provide me an example or tips on how to do this? I am new to Qt.
You can apply a stylesheet to yours QListView.
QListView
Check here for Qt documentation on customization QListViewusing style sheets.
Take a look at http://qt-articles.blogspot.com/2010/07/how-to-customize-listview-in-qt-using.html
QListWidget ( , QStandardItem), setData.
, :
QListWidgetItem *colorItem = new QListWidgetItem("Red"); colorItem->setData(QBrush(QColor(Qt::red)), Qt::ForegroundRole); list.addItem(colorItem);
.: http://ynonperek.com/qt-mvc-customize-items