Public Member Functions

QxtNativeEventFilter Class Reference
[QxtGui]

A native event filter to access platform specific events. More...

#include <qxtnativeeventfilter.h>

List of all members.

Public Member Functions

virtual ~QxtNativeEventFilter ()

Detailed Description

A native event filter to access platform specific events.

QxtNativeEventFilter provides access to platform specific native events without the need of subclassing QApplication.

Note:
QxtNativeEventFilter requires QxtApplication.

Example usage:

    qxtApp->installNativeEventFilter(myObject);

    class MyObject : public QxtNativeEventFilter {
        public:
            ...

            bool x11EventFilter(XEvent* event) {
                if (event->type == ...) {
                    ...
                }
                return false;
            }

            bool winEventFilter(MSG* msg, long* result) {
                if (msg->message == ...) {
                    ...
                }
                return false;
            }

            bool macEventFilter(EventHandlerCallRef caller, EventRef event) {
                if (GetEventClass(event) == ...) {
                    ...
                }
                return false;
            }
    };
See also:
QxtApplication::installNativeEventFilter()

Definition at line 104 of file qxtnativeeventfilter.h.


Constructor & Destructor Documentation

virtual QxtNativeEventFilter::~QxtNativeEventFilter (  ) [inline, virtual]

Definition at line 107 of file qxtnativeeventfilter.h.

    {
        qxtApp->removeNativeEventFilter(this);
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines