[Qt-interest] QCombox Box as a child of TableWidget Header

Amit Tikekar amit.tikekar at pb.com
Wed Oct 14 18:36:39 CEST 2009


Hi:

I wish to display a combo box within the header field of a table widget. So that at runtime, I am able to decide on the type of data contained within each column.

I was assuming that I would just retrieve the horizontal/vertical header widget and create a combo box as a child to this widget. But no, QTableWidgetItem is not a QObject derived class. 

I've seen delegate combo boxes which are displayed within the data cells but none of the type that I desire.

Any suggestions on how I can achieve this milestone? 

Thanks.
Amit




More information about the Qt-interest-old mailing list