Yeah It does the trick in an even sexier way ! Dunno why I didn't thought putting a gridSize bigger than my icons widthThanks again !
Yeah It does the trick in an even sexier way ! Dunno why I didn't thought putting a gridSize bigger than my icons widthThanks again !
From above it seems you are using your own model..for i in range( self._model.rowCount() ) :
iblSetStandardItemItem = self._model.item( i )
iblSetStandardItemItem.setSizeHint( QSize( value, value + 16 ) )
Instead of iterating over all items and setting their size hint, you can return the size hint from model::data function too.
Bookmarks