for i in range( self._model.rowCount() ) :
iblSetStandardItemItem = self._model.item( i )
iblSetStandardItemItem.setSizeHint( QSize( value, value + 16 ) )
From above it seems you are using your own model..
Instead of iterating over all items and setting their size hint, you can return the size hint from model::data function too.