from PyQt5.QtWidgets import QStyledItemDelegate from PyQt5.QtCore import QModelIndex from PyQt5.QtGui import QPainter class CustomDelegate(QStyledItemDelegate): def paint(self, painter, option, index): # Personnalisation du rendu des cellules super().paint(painter, option, index)