Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How intercept background and foreground event



  • As in object...how can i know if an app goes in background and viceversa?

    Thank you
    Giovanni



  • bq. QEvent::ApplicationActivate The application has been made available to the user.
    QEvent::ApplicationDeactivate The application has been suspended, and is unavailable to the user.

    bq. "QEvent":http://doc.qt.nokia.com/latest/qevent.html QObjects receive events by having their QObject::event() function called. The function can be reimplemented in subclasses to customize event handling and add additional event types; QWidget::event() is a notable example. By default, events are dispatched to event handlers like QObject::timerEvent() and QWidget::mouseMoveEvent(). QObject::installEventFilter() allows an object to intercept events destined for another object.

    Forward these events to QML using signals.



  • O yess...so simple...my question because i've seen the use of symbianEventFilter and so...thank you.
    It works very well


Log in to reply