QTreeWidget and QItemDelegate



  • Hello is it possible to define a delegate for an item? I want to select the fields to delegate, doing it per column is not what I want. Is it also possible to allow delegate without making all QTreeWidgetItem fields editable? Thank you


  • Lifetime Qt Champion

    Hi,

    What you could do is in your delegate, check whether you're on the right cell and create your custom editor and if not return the base implementation's editor.

    As for the editable part, just set it on the particular item you want to be editable


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.