[PyQt] PyQt5 5.11.2 regression: Missing QAbstractItemModel.VerticalSortHint

Phil Thompson phil at riverbankcomputing.com
Wed Jul 4 09:53:35 BST 2018


On 4 Jul 2018, at 8:55 am, Ales Erjavec <ales.erjavec324 at gmail.com> wrote:
> 
> Hi,
> 
> The `QAbstractItemModel` is missing the VerticalSortHint and other
> members of the `LayoutChangeHint` at the class namespace level.
> 
> ```
> from PyQt5.QtCore import QAbstractItemModel
> h = QAbstractItemModel.VerticalSortHint
> ```
> raises a "AttributeError: type object 'QAbstractItemModel' has no
> attribute 'VerticalSortHint'"
> Works as expected on 5.10.1 and 5.9.2
> 
> Tested on macOS, PyQt5 5.11.2  installed from wheels.

Fortunately this is a sip module problem rather than a code generation problem. I'll release a new version of sip (and the PyQt5.sip wheels) today or tomorrow.

Thanks,
Phil


More information about the PyQt mailing list