[Interest] hide entry in QComboBox

André Somers andre at familiesomers.nl
Fri May 2 13:10:00 CEST 2014


Harish Surana schreef op 2-5-2014 13:01:
> Is there a way around to hide/show entries in QComboBox?
You could use the model-view framework to do this. You can provide the 
entries that appear in the box via a model (a class derived from 
QAbstractItemModel). You can then filter that model using a 
QSortFilterProxyModel. What exactly the best way is, depends on your 
exact requirements.


André





More information about the Interest mailing list