Home · Modules · Classes · Namespaces · Functions

QxtApplication Class Reference
[QxtGui module]

The QxtApplication class is an extended QApplication with support for native event filters. More...

    #include <QxtApplication>

Inherits QApplication.

Public Functions

Static Public Members

Macros

Additional Inherited Members


Detailed Description

The QxtApplication class is an extended QApplication with support for native event filters.

QxtApplication lets you install native event filters. This gives an easy and straightforward access to platform specific native events.

See also QxtNativeEventFilter.


Member Function Documentation

QxtApplication::QxtApplication ( int & argc, char ** argv )

Constructs a new QxtApplication with argc and argv.

See also QApplication::QApplication().

QxtApplication::QxtApplication ( int & argc, char ** argv, bool GUIenabled )

Constructs a new QxtApplication with argc, argv and GUIenabled.

See also QApplication::QApplication().

QxtApplication::QxtApplication ( int & argc, char ** argv, Type type )

Constructs a new QxtApplication with argc, argv and type.

See also QApplication::QApplication().

QxtApplication::~QxtApplication ()   [virtual]

Destructs the QxtApplication.

See also QApplication::~QApplication().

void QxtApplication::installNativeEventFilter ( QxtNativeEventFilter * filter )

Installs a native event filter.

A native event filter is an object that receives all native events before they reach the application object. The filter can either stop the native event or forward it to the application object. The filter receives native events via its platform specific native event filter function. The native event filter function must return true if the event should be filtered, (i.e. stopped); otherwise it must return false.

If multiple native event filters are installed, the filter that was installed last is activated first.

See also removeNativeEventFilter().

QxtApplication * QxtApplication::instance ()   [static]

Returns a pointer to the instance of the application object.

A convenience macro qxtApp is also available.

void QxtApplication::removeNativeEventFilter ( QxtNativeEventFilter * filter )

Removes a native event filter. The request is ignored if such a native event filter has not been installed.

See also installNativeEventFilter().


Macro Documentation

qxtApp

A global pointer referring to the unique application object. It is equivalent to the pointer returned by QxtApplication::instance().

See also QxtApplication::instance().


Copyright © 2007-2011 Qxt Foundation
Qxt 0.6.2