[Qt-interest] QGraphicsView With QComboBox Editor

Aron Bierbaum aronbierbaum at gmail.com
Mon Jul 27 20:10:12 CEST 2009


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.

-Aron

On Mon, Jul 27, 2009 at 9:59 AM, Andreas Pakulat<apaku at gmx.de> wrote:
> On 27.07.09 09:31:22, Aron Bierbaum wrote:
>> We are working on an application that has a QListView that is embedded
>> inside a QGraphicsProxyWidget. We have run into an issue where using a
>> QComboBox as an editor widget does not work correctly because the
>> combo box drop down is not displayed. It works as expected when not
>> using a QGraphicsProxyWidget to embed in a QGraphicsView, but breaks
>> as soon as we add it to the scene. Is this a known issue? Are we doing
>> something incorrectly? Please see the simple test showing the behavior
>> attached.
>
> I think you'll have to add the combobox yourself to the graphisview using
> its own graphicsproxywidget and move that proxywidget accordingly. At least
> thats what is done internally inside QComboBox when it shows the listview.
> After all the editing widget is not a real child of the listview, its
> just moved to the right place.
>
> Andreas
>
> --
> You look like a million dollars.  All green and wrinkled.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>




More information about the Qt-interest-old mailing list