How to create a QTable widget which has 2 columnes, and in first column there is a QComboBox and in the second column there is a QSpinBox so that the combo box gets all the space of table and only a very small place leaves for QSpinBox (for 2-3 digits).
Share
First, use
setCellWidget()to set theQComboBoxandQSpinBoxas the widgets to be displayed in the appropriate cell.Second, use
horizontalHeader()to access theQHeaderViewfor theQTableView, then set theResizeModeaccordingly.