@J.Hilk ok then you can follow the suggestion from @mrjj (in case you would have set a custom model you would have need to handle the Qt::SizeHintRole in your data() method) or try to set a QStyledItemDelegate to the view and use your stylesheet.