[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Access object not created from python
From:       Jimmy Girardet <ijkl () netc ! fr>
Date:       2020-12-02 8:00:32
Message-ID: 03b0579c-2ecd-50e3-b11f-c30f0c53ee74 () netc ! fr
[Download RAW message or body]

thanks for the ti, I solved it with .

By the way it's the first time I post on this list,  I wanna let you 
know  about a pytest-qml plugin I did.

This PyTest plugin allows you to run qml tests via pytest instead of the 
C++/QtQuick test runner. It supports both PySide2 and PyQt5 >= 5.14.2 , 
using the same api as QtQuickTest.

https://jgirardet.github.io/pytest-qml/

Have a nice day

Jimmy


02/12/2020 à 01:15, David Boddie a écrit :
> On Tue Dec 1 23:08:29 GMT 2020, Jimmy Girardet wrote:
>
> [...]
>
>> window.wheelEvent(event)
>>
>> window is created from qml. I get the following error:
>>
>> RuntimeError: no access to protected functions or signals for objects
>> not created from Python
>>
>> I understand the error (window is created in qml), but do you see a
>> workaround for what I wanna do ?
> Maybe try calling QApplication.instance().postEvent(window, event) or
> something similar? The event should be delivered like a normal QWheelEvent.
>
> David


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic