Mario Diethelm Guallar
2015-06-16 15:07:28 UTC
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
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