You can use setIndexWidget() but be aware of two things:
1. the widgets will not be tied to your model in any way - they will just occupy space in the table view and you have to interconnect them with your model by yourself
2. if you add to many such widgets, everything will become slow as hell.
An alternative is to have a delegate that will use QStyle API to render the looks of a combobox in non-edit mode and will create a real combobox only when a particular cell is edited. It's more work but a much better result.
Bookmarks