Re: QTreeWidget read only?
Hi, you could use:
or set all items in it non editable.
Re: QTreeWidget read only?
Thanks. Set all the child items to disabled.
Re: QTreeWidget read only?
Quote:
Originally Posted by
td
Thanks. Set all the child items to disabled.
Earlier you said it didn't suit your needs. Anyway, see also QTreeWidgetItem::setFlags() and Qt::ItemIsEditable.
Re: QTreeWidget read only?
Quote:
Originally Posted by
jpn
Earlier you said it didn't suit your needs.
Doing it for the whole tree didn't (i.e. not being able to scroll down), but using it just on the child items did the trick and allowed scrolling. Thanks.