[Qt-interest] QComboBox with checked items

Andreas Pakulat apaku at gmx.de
Wed Jan 28 20:32:48 CET 2009


On 28.01.09 20:14:15, Iurii Gordiienko wrote:
> Hi    
>     I need QComboBox with multiple selection, I want make it with checked items. Have anybody any ideas?    

No you don't ;) That widgets doesn't make any sense as there's only one entry
that can be seen once you selected something. So you can never see easily
which items have been selected. Thats a pretty bad UI - IMHO.

Its possible though by using a custom model in the combobox and providing
the check-flags and acting on the check-role. Further information can be
found in the QAbstractItemModel api documentation

Andreas

-- 
Among the lucky, you are the chosen one.



More information about the Qt-interest-old mailing list