View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#5
On the C++ side, you could install an event filter with "installEventFilter" on the QQuickView and look for the close event.

Code:
bool MyClass::eventFilter(QObject* obj, QEvent* ev)
{
    if (obj == myView && ev->type() == QEvent::Close)
    {
        // do something...
    }
    return QObject::eventFilter(obj, ev);
}
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following 2 Users Say Thank You to pycage For This Useful Post: