Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Inserting QComboBox in the HorizontalHeader of the QTableWidget



  • Hi All,
    Is there any way to insert the QComboBox in the HorizontalHeader in the QTableWidget.
    I can insert in the other cell by using setCellWidget(row,column), since for the header we wont get particular row and column index Im not able to put the combo in the header. Is there any other method to insert combo in header.

    Thanks.



  • There is no way to do that in an analogous way as you would using setCellWidget, but QHeaderView being derived from QWidget, it should be possible to give it child widgets. You will have to manage the layout of these widgets manually though.



  • Ok Thanks a lot. Ya I ll try it out that.


Log in to reply