[Qt-interest] QGraphicsView With QComboBox Editor

Andreas Pakulat apaku at gmx.de
Mon Jul 27 22:37:19 CEST 2009


On 27.07.09 13:10:12, Aron Bierbaum wrote:
> I thought this would be handled automatically already, similar to how
> the QComboBox works on it's on while embedded in a
> QGraphicsProxyWidget. It seems like a fairly common use case that some
> would have noticed by now.

I guess the combobox case works because the listview is a parent of the
combobox, while I think with editor-widgets this is usually not done
(though I could be wrong of course). OTOH createEditor does get a parent
widget... Never tried this myself, would be interesting to know wether
QListWidget&Co work, you can get a combobox editor there by using a
boolean value for data() in Display and EditRole IIRC.

Andreas

-- 
You are a very redundant person, that's what kind of person you are.



More information about the Qt-interest-old mailing list