[PyQt] QTreeView: Deselection

Filip Gruszczyński gruszczy at gmail.com
Tue Nov 11 20:21:00 GMT 2008


I have a following situation: there is a tree simple tree view with
some folder-like structure. Any object may be chosen from this view or
not. If anything is chosen, then the dialog returns the chosen index's
internal pointer and if nothing was chosen it should return None.
Except it doesn't. Nothing was chosen, I click Accept in the dialog
and some default item is returned which is not a thing I would like to
get. I looked at selection mode and selection behaviour, but none
seemed right. Could anyone help me on this?

-- 
Filip Gruszczyński



More information about the PyQt mailing list