[PyQt] QListWidget.sortItems() problem

Baz Walter bazwal at ftml.net
Tue Sep 20 19:49:18 BST 2011

On 20/09/11 18:56, Hugo Léveillé wrote:
> I am writting a quick application inside another software that use PyQT
> In previous version, I could sort all my listwidget without any problem
> using the .sortItems()
> But in the latest release of that version, I get the following error on
> some of my listwidget I try to sort
> TypeError: expected 1 arguments, got 0
> I tied using Qt.AscendingOrder but it does not help
> Its using Qt 4.6.2

this looks like the same bug as this:


i think the bug is only present in sip-4.12.3. so if you can upgrade (or 
downgrade) sip, the problem should go away.

More information about the PyQt mailing list