[Qt-interest] QGraphicsView With QComboBox Editor
Andreas Pakulat
apaku at gmx.de
Mon Jul 27 16:59:26 CEST 2009
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.
More information about the Qt-interest-old
mailing list