Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

How to stylize checkable items in a QAbstractItemModel-based model?

$
0
0
Suppose a column inside a QAbstractItemModel-based model has the Qt::ItemIsUserCheckable flag of one of the columns set. If the model is set to a let’s say QTableView, the column displays the native checkbox’s state images. Is there a way using a stylesheet set to the QTableView (for instance, could be any QAbstractItemView) or somehow inside the model to provide custom images for the different check states?

Viewing all articles
Browse latest Browse all 13965

Trending Articles