Access object not created from python

Jimmy Girardet ijkl at netc.fr
Tue Dec 1 23:08:29 GMT 2020


Hi,

I wanna do the following :

event =QWheelEvent(
     pos,
     globalPos,
     pixelDelta,
     angleDelta,
     buttons,
     modifiers,
     phase,
     inverted,
     source,
)
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 ?

Thanks

Jimmy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20201202/92f9f1a4/attachment.htm>


More information about the PyQt mailing list