[Qt-interest] QGraphicsView With QComboBox Editor

Aron Bierbaum aronbierbaum at gmail.com
Mon Nov 9 03:35:56 CET 2009


I have tried numerous different things to make this work without any
luck. I was hoping that Qt 4.6 would handle this use case
automatically, but no such luck. Does anyone have another good idea
how to make this work?

Thanks,
Aron

On Mon, Jul 27, 2009 at 2:37 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> 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.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: list_view_test.zip
Type: application/zip
Size: 1059 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091108/f9d937cc/attachment.zip 


More information about the Qt-interest-old mailing list