I feel like I miss something extremely obvious, but couldn't find anything on it.
I have a custom item delegate for which I set the sizeHint height to 50, but the print statement returns a rectangle that is double the height.
def sizeHint(self, option, index):
print("sizehint:", option.rect)
s = QtCore.QSize()
s.setWidth(option.rect.width())
s.setHeight(50)
return s
#output
sizehint: PySide2.QtCore.QRect(0, 0, 498, 100)