I would reimplement QAbstractItemDelegate and return the required sizeHint for that item.