I am worked on jpn's last code and this is the final implementation:
GmcListView
::GmcListView(QWidget *parent
){
setPalette(palette);
}
GmcListView::GmcListView(QWidget *parent)
:QListView(parent)
{
setEditTriggers(QAbstractItemView::NoEditTriggers );
QPalette palette = this->palette();
palette.setBrush(QPalette::Highlight, QBrush(QPixmap(":images/selected.png")));
palette.setBrush(QPalette::Base, QBrush(QPixmap(":images/notselected.png")));
setPalette(palette);
}
To copy to clipboard, switch view to plain text mode
(no need to use setStyleSheet()).
Now I have customize the scrollbar look. I'd thought to create a QScrollBar widget with listView as parent thinking so to substitute the default one and working on it, but now my listView have two scrollbars...
Soon as I have a solution will post it.
Bookmarks