Hi,

I am using some WComboBox objects based on WSortFilterProxyModel as underlying data model. With the WComboBox objects based on WStandardItemModel you can use setCurrentIndex(-1) to clear the current selection, but with the WComboBox objects based on WSortFilterProxyModel, even after resetting the filter (setFilterRegExp(".*")) the setCurrentIndex(-1) call sets the WComboBox object to the first element (index 0) instead of clear the current selection.

Is this the expected behavior? Is there a mechanism to clear the selection for a WComboBox based on a WSortFilterProxyModel?

thanks.

________________
Mario Diethelm
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to