[PyQt] QQuickView connect closing signal
Phil Thompson
phil at riverbankcomputing.com
Sat Dec 12 18:53:53 GMT 2015
On 4 Dec 2015, at 6:54 p.m., Phil Thompson <phil at riverbankcomputing.com> wrote:
>
> On 4 Dec 2015, at 6:39 p.m., Jérôme Godbout <jerome at bodycad.com> wrote:
>>
>> 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
>
> Although closing() seems to be part of the public API, QQuickCloseEvent isn't. I'll try and clarify.
I've added closing() and QQuickCloseEvent (as an opaque class) to tonight's snapshot.
Phil
More information about the PyQt
mailing list