[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Access object not created from python
From: David Boddie <david () boddie ! org ! uk>
Date: 2020-12-02 0:15:44
Message-ID: 2187908.doAQLD4emS () aurora
[Download RAW message or body]
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