[Qt-interest] QCombox Box as a child of TableWidget Header
Malyushytsky, Alex
alex at wai.com
Thu Oct 15 00:53:23 CEST 2009
You could subclass QHeaderView to display combobox at the place you want,
and set it to your table widget with:
void QTableView::setHorizontalHeader ( QHeaderView * header )
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Amit Tikekar
Sent: Wednesday, October 14, 2009 9:37 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QCombox Box as a child of TableWidget Header
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
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
More information about the Qt-interest-old
mailing list