[Interest] Qml Window: handling close events?
Josh Faust
jfaust at suitabletech.com
Mon May 6 18:27:46 CEST 2013
> onVisibleChanged or onVisibilityChanged perhaps? But it happens after the
> window is already closed, so you can do some auto-saving of data for
> example, but it's a bit late to pop up a FileDialog to prompt the user
> where to save (the FileDialog would have no visible parent window).
> Otherwise you could override QWindow::event() and handle the close event,
> but it's inconvenient to write the C++ and then change your QML to use the
> custom subclass, for such an expected feature. I guess we will need to
> think of an easier way.
>
> https://bugreports.qt-project.org/browse/QTBUG-31019
>
>
Ah, yes, I should have been more explicit in what I meant by "handling". I
meant ignoring -- though I also missed the obvious onVisibleChanged.
Thanks!
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130506/8878cc58/attachment.html>
More information about the Interest
mailing list