Hi,

Qt makes no guarantee on the order of returned items, it merely guarantee's
that all items that are selected are returned in a list. There's no
incompatibility, just a change in a behaviour that is not explicitly
defined.

Andreas


On Tue, Jul 2, 2013 at 6:31 PM, T.N.T. <t...@banza.net> wrote:

> Hello
>
> When I have a QTableWidget with the following settings:
>
>
>   tw.setColumnCount(2)
>   tw.setSelectionBehavior(QtGui.**QAbstractItemView.SelectRows)
>
> and say I have selected the first two rows, then tw.selectedItems()
> returns a list of 4 items.
>
> Now in PyQt4 compiled with Qt4 the order is:
>
>  [ c0_r0, c0_r1, c1_r0, c1_r1 ]
>
> but compiled with Qt5:
>
>  [ c0_r0, c1_r0, c0_r1, c1_r1 ]
>
>
> Regards, T.
> ______________________________**_________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.**com/mailman/listinfo/pyqt<http://www.riverbankcomputing.com/mailman/listinfo/pyqt>
>
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to