[PyQt] QQuickView connect closing signal

Jérôme Godbout jerome at bodycad.com
Fri Dec 4 18:39:00 GMT 2015


Hi,
I'm trying to connect the QQuickView::closing(QQuickCloseEvent*) signal to
a python slot, but cannot figure out how to be able to use the
QQuickCloseEvent, nor import it?!?

TypeError: C++ type 'QQuickCloseEvent*' is not supported as a signal
argument type

Is it possible to connect to event handler or how do I import this into
Python (It's declared into QQuickWindow, which I import.

from PyQt5.QtQuick import QQuickView, QQuickWindow

Another question, can I connect a signal to an handler with less arguments?
let say I drop the event into the handler like so:

 def onClosing(self):
   # do stuff here

Thanks
Jerome
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151204/58668181/attachment.html>


More information about the PyQt mailing list