Hi,
I am using a QTreeWidget in which I want to disable/ don't allow the user to expand the TreewidgetItem on certain cases. How can i achieve this?
item->SetDisabled(false) is not working anyhow.
Hi,
I am using a QTreeWidget in which I want to disable/ don't allow the user to expand the TreewidgetItem on certain cases. How can i achieve this?
item->SetDisabled(false) is not working anyhow.
QTreeWidgetItem::setDisabled() should have the value "true" if you do not want the user to be able to interact with it.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Sorry. I was setting the Value to "true" only, but even then i could able to expand the TreeItem.
Bookmarks