Qt-interest Archive, April 2008
Customize the table headers
Message 1 in thread
I want to add a dropdown menu button for sorting to the column headers of a
table view, similar with what you've already seen in MS Access. What is the
best way to achieve this?
According to the documentation (see below) it can't be done through
setItemDelegate.
From the QHeaderView documentation:
Note: Each header renders the data for each section itself, and does not
rely on a delegate. As a result, calling a header's setItemDelegate()
function will have no effect.
Thanks
--
[ signature omitted ]