[PyQt] Not consistent behavior in QComboBox

Daniele Esposti expo at expobrain.net
Fri Oct 8 10:10:39 BST 2010


Hi all,

I found a different behavior in QComboBox when selecting an item from
a multicolumn model view:

- if isEditable() is False the content of the selected cell is used as
the combo box text
- if isEditable() is True the content of the first column of the
selected item is used as the combo box text, maybe honoring the
modelColumn() property

This happens in all platform (Windows, Linux and Mac OS X).
So, is this the correct behaviour or it's a bug ?

I've attached a simple example

-- 
Daniele Esposti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: combo.py
Type: application/octet-stream
Size: 2877 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101008/f7304dc3/attachment.obj>


More information about the PyQt mailing list