Your spinbox seems to have sub controls (buttons), but your sizeHint does not include the size needed for them.

Cheers,
_