⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
QTreeWidget and QItemDelegate
kouros last edited by
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
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