[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] TypeError with QAbstractItemModel::checkIndex
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2018-11-28 15:00:52
Message-ID: ACDCF3ED-4816-4533-88DC-98C7E26AB0FA () riverbankcomputing ! com
[Download RAW message or body]
On 28 Nov 2018, at 10:47 am, Florian Bruhin <me@the-compiler.org> wrote:
>
> Hi,
>
> something seems to be weird about QAbstractItemModel::checkIndex:
>
> > > > from PyQt5.QtGui import QStandardItemModel
> > > > from PyQt5.QtCore import QModelIndex, QAbstractItemModel
> > > > m = QStandardItemModel()
> > > > idx = m.createIndex(0, 0)
> > > > m.checkIndex(idx, QAbstractItemModel.CheckIndexOption.IndexIsValid)
> TypeError: an integer is required (got type CheckIndexOption)
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> SystemError: <built-in method checkIndex of QStandardItemModel object at \
> 0x7f84247b1948> returned a result with an error set
Should be fixed in tonight's sip snapshot. It's a sip module change - no need to \
re-build PyQt.
Thanks,
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic