PyQt5 5.11.2 regression: Missing QAbstractItemModel.VerticalSortHint

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PyQt5 5.11.2 regression: Missing QAbstractItemModel.VerticalSortHint

Ales Erjavec
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.

Best wishes
    AleŇ° Erjavec
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Reply | Threaded
Open this post in threaded view
|

Re: PyQt5 5.11.2 regression: Missing QAbstractItemModel.VerticalSortHint

Phil Thompson-5
On 4 Jul 2018, at 8:55 am, Ales Erjavec <[hidden email]> 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
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt