PDA

View Full Version : combo box in Header of QTableWidget



sar_van81
6th February 2008, 11:54
hi everyone,

can anyone say me how to insert a combo box in the header of a table. i searched in the net and the docs and i found that we can only add the widgets to tht table through setCellWidget and not in the header of the table.

can anyone provide me any suggestion or solutions for this ?

thanks in advance,
saravanan.

jpn
6th February 2008, 17:58
What did you try so far?

QHeaderView is not a full-featured item view, which means you cannot use index widgets, editors or anything like that. I'm afraid you will have to keep the widget in the right location on your own. QHeaderView provides plenty of information about section geometries and their changes so it shouldn't be a problem.