PDA

View Full Version : QComboBox QitemDelegate size



aekilic
6th December 2008, 09:04
Dear All

We have qitemdelegate for a qtabel widget. We have a qcombobox from the delgate for the first column. What we would like to to is, when we enter the delegat, we would like to resize the column to the contents of the qcombo?

Is there any way we can do it?

wysota
6th December 2008, 16:43
There is no direct way to do it. You'd have to resize the column manually upon click and then call the edit method to create an editor widget through the delegate.