I’ve got a QComboBox with a custom list object.

The custom list object has a custom mousePressEvent so that when the user click on one of the circles with a +/- (a twisty), the list is expanded/collapsed.
When I use the list with the combo box, when the user clicks on a twisty, the list is expanded/collapsed, but the selection is changed, and the list is hidden. How can I filter this so that when the user click on a twisty, the selection is not changed, and the list not hidden.
Additional screenshots
All of the nodes collapsed: 
List hidden: 
QT has a
eventFilterthat ‘captures’QEvent.MouseButtonRelease. So what I have done is installed my owneventFilterthat filtersQEvent.MouseButtonReleaseevents if the user click on a node.In my list object I have the following method:
The
mousePressEventruns beforemouseReleaseEvent.Then in the custom combobox, I filter the event: