I am implementing an editable item model/view that uses delegates to provide custom editors. The editors are either QDoubleSpinBoxes or QComboBoxes. Now the size of the editor widget is very very small when displayed in the item view so I guess I have to reimplement the Delegates sizeHint. But how can I ask QStyle to tell me what the preffered size of a spinbox ?

Thanks in advance