[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] pyQt + QML: tableview.property("selection") fails
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2015-04-24 14:16:37
Message-ID: 367d829b0f2f5e725ae65c1351b05f5e () riverbankcomputing ! com
[Download RAW message or body]
On 04/04/2015 6:44 pm, Sébastien Renaud wrote:
> Hello!
>
> Test computer:
> - Windows 8.1 (x64)
> - Python 3.4.3
> - PyQt [downloaded from website]: PyQt GPL v5.4.1 for Python v3.4
> (x64)
>
> I have a problem when retrieving the "selection" property from a QML
> tableview. This works with other properties but not with selection:
>
> # get a dummy property, this works!
> rowcount = tableview.property("rowCount")
> print("rowcount: {}".format(rowcount))
>
> # TypeError: unable to convert a C++
> 'TableViewSelection_QMLTYPE_32*'
> instance to a Python object
> selection = tableview.property("selection")
>
> Maybe I'm doing something wrong...I attached both the .py and .qml
> files.
>
> Could you tell me what's wrong?
>
> Thank you very much!
Should be fixed in tonight's PyQt5 snapshot.
Thanks,
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://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