Add combobox in Header View
-
Requirement : The combobox look and feel should be present at all times (not just on double click).
The table data should not be altered. Kindly let me know if there is a better approach.
I have tried certain ways:- Reimplementation of QHeaderView : it would result in static controls which are immovable in horizontal scroll
- Added delegates : but tableview->horizontalHeader()->setDelegateItem doesnot seem to work
- Adding delegates : Upon forcefully adding comboboxes in tableview first row (first row data is getting compramised), the model class will override my combobox selection when i "setmodal". And the combobox selection will not stick if I reimplement paint method.
Thanks in Advance.
I would Like to add a snapshot as well. But I am not sure how to add here.
Kindly let me know the same