Qt World Summit: Submit your Presentation

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.

  • 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.

Log in to reply