Quantcast
Channel: Active questions tagged listview - Stack Overflow
Viewing all articles
Browse latest Browse all 790

How to paint according to qStylesheet in QStyledItemDelegate

$
0
0

I want to subclass QStyledItemDelegate and modify it with QStyleSheets. I dont have any clue of how to get it to work. I tried plenty of hours to just display anything, looking like I defined in the qss. In priciple it has to work, because when I call the base class implementation of paint(QPainter*, const QStyleOptionViewItem &, const QModelIndex&) the list items look like defined. Well, now how can I apply the stylesheet in the delegate?


Viewing all articles
Browse latest Browse all 790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>