[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Combobox inside a delegate in a proxy widget
From:       Selim Tuvi <selim.tuvi () dreamworks ! com>
Date:       2013-01-18 21:20:27
Message-ID: CAJoAfV+sUymNcsBQRJ6Lo6MTkm4ORRx0hei46SBPnN6qby8Qaw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I have a QGraphicsScene and inside it I have a proxy widget with a
QListWidget that has a delegate which creates a QComboBox

When I trigger the editing by clicking on an item in the list widget, I can
use the keyboard to navigate between the items in the combo box but as soon
as I use the mouse to open up the drop down list of the combo box, it
immediately closes. I am attaching a simple example.

I tried messing with the focus events, installing an event filter but none
of them work.

I am using Qt 4.7 and PyQt 4.8.6.

I have also verified this with a C++ Qt app so PyQt has nothing to do with
the problem. Also with Qt 5.0, using the mouse causes the app to crash as
soon as I try to open up the combo drop down.

Thanks
-Selim

[Attachment #5 (text/html)]

I have a QGraphicsScene and inside it I have a proxy widget with
 a QListWidget that has a delegate which creates a QComboBox<br><br>When
 I trigger the editing by clicking on an item in the list widget, I can 
use the keyboard to navigate between the items in the combo box but as 
soon as I use the mouse to open up the drop down list of the combo box, 
it immediately closes. I am attaching a simple example.<br><br>I tried messing with \
the focus events, installing an event filter but none of them work.<br><br>I am using \
Qt 4.7 and PyQt 4.8.6.<br><br>I  have also verified this with a C++ Qt app so PyQt \
has nothing to do  with the problem. Also with Qt 5.0, using the mouse causes the app \
to  crash as soon as I try to open up the combo drop down.<br>
<br>Thanks<br>-Selim<br><br>

--047d7b6dcbd668a6f204d396af7d--


["simple_scene.py" (application/octet-stream)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic