October 10, 2011

Anticross Anticross
Hobby Entomologist
248 posts

Set delegate for one cell(item)

 

I need to set my custom item delegate for only one cell. Is there any way to do this in QTreeView class ? Searching in Assistant gives me only setItemDelegate, setItemDelegateForRow, setItemDelegateForColumn. Function setItemDelegate takes only one argument and applies to all items in view, but I need to apply just in one item by given row and column.

1 reply

October 10, 2011

Andre Andre
Area 51 Engineer
6031 posts

No, not that I know off. But you could make your delegate just expose the default behaviour for all cells that do not match certain criteria.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

 
  ‹‹ [solved] List available drives      How can i call a function with three arguments while a button is clicked? ››

You must log in to post a reply. Not a member yet? Register here!