[PyQt] checkable QCombobox?
Andreas Pakulat
apaku at gmx.de
Tue Sep 9 17:32:56 BST 2008
On 09.09.08 10:03:40, Kerri Reno wrote:
> I would like to do a checkable QComboBox. QtDesigner does it, but I'm
> not sure how. When you choose the standard buttons on the
> QDialogButtonBox, it lets you check items in a list. Maybe it's a
> ListWidget, but then how does it pop up that way?
>
> Does anyone know how this is done? If you could just point me in the
> right direction, I'd be grateful.
Without actually checking on designer, this should be possible by
providing a custom model to the combobox which supports checkable
entries (i.e. overrides flags() to return UserCheckable and handles the
check-roles).
Andreas
--
Today is the tomorrow you worried about yesterday.
More information about the PyQt
mailing list