<div dir="ltr">Hi,<div><br></div><div style>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.</div>
<div style><br></div><div style>Andreas</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 6:31 PM, T.N.T. <span dir="ltr"><<a href="mailto:tnt@banza.net" target="_blank">tnt@banza.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
When I have a QTableWidget with the following settings:<br>
<br>
<br>
tw.setColumnCount(2)<br>
tw.setSelectionBehavior(QtGui.<u></u>QAbstractItemView.SelectRows)<br>
<br>
and say I have selected the first two rows, then tw.selectedItems() returns a list of 4 items.<br>
<br>
Now in PyQt4 compiled with Qt4 the order is:<br>
<br>
[ c0_r0, c0_r1, c1_r0, c1_r1 ]<br>
<br>
but compiled with Qt5:<br>
<br>
[ c0_r0, c1_r0, c0_r1, c1_r1 ]<br>
<br>
<br>
Regards, T.<br>
______________________________<u></u>_________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.<u></u>com/mailman/listinfo/pyqt</a><br>
</blockquote></div><br></div>