[PyQt] Sorting column with QComboBox cellwidgets
Gert-Jan
gj_den_heijer at hotmail.com
Tue Mar 17 07:58:30 GMT 2009
EDIT: my apologies if this thread is double-posted. This is a repost, as the
original one appears to be pending for a couple of days now.
ORIGINAL MESSAGE:
Hey there,
I'm relatively new to Qt4. I have constructed a QTableWidget and filled one
of its columns with a QComboBox using QTableWidget's setCellWidget(). Now
I'm trying to sort this column on the current text of the QComboBoxes, but
clicking on the header does absolutely nothing. Sorting any other column
works fine, though.
There doesn't appear to be a signal for clicking column headers, otherwise I
could just use that to call a function to manually sort the comboboxes.
Of course, can still think of crude work-arounds to get the column to be
sorted, but I feel there is something simple I'm missing here. I just can't
figure out what, though.
So, does anyone happen to know a simple method to enable this, or have a any
sort of hint?
Thanks in advance for any help!
Cheers,
Gert-Jan
PS. I hope I have explained my problem clear enough. If not, then my sincere
apologies!
--
View this message in context: http://www.nabble.com/Sorting-column-with-QComboBox-cellwidgets-tp22499840p22499840.html
Sent from the PyQt mailing list archive at Nabble.com.
More information about the PyQt
mailing list