QtBase
v6.3.1
|
#include <qiosmenu.h>
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) override |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
Additional Inherited Members | |
Public Types inherited from QPlatformMenu | |
enum | MenuType { DefaultMenu = 0 , EditMenu } |
Public Slots inherited from QObject | |
void | deleteLater () |
Signals inherited from QPlatformMenu | |
void | aboutToShow () |
void | aboutToHide () |
Signals inherited from QObject | |
void | destroyed (QObject *=nullptr) |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
Protected Attributes inherited from QObject | |
QScopedPointer< QObjectData > | d_ptr |
Properties inherited from QObject | |
QString | objectName |
the name of this object More... | |
Related Functions inherited from QObject | |
template< class T > T | qobject_cast (const QObject *object) |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
Definition at line 85 of file qiosmenu.h.
QIOSMenu::QIOSMenu | ( | ) |
Definition at line 309 of file qiosmenu.mm.
QIOSMenu::~QIOSMenu | ( | ) |
|
inlinestatic |
Definition at line 110 of file qiosmenu.h.
|
overridevirtual |
Reimplemented from QPlatformMenu.
Definition at line 426 of file qiosmenu.mm.
Filters events if this object has been installed as an event filter for the watched object.
In your reimplementation of this function, if you want to filter the event out, i.e. stop it being handled further, return true; otherwise return false.
Example:
Notice in the example above that unhandled events are passed to the base class's eventFilter() function, since the base class might have reimplemented eventFilter() for its own internal purposes.
Some events, such as \l QEvent::ShortcutOverride must be explicitly accepted (by calling \l {QEvent::}{accept()} on them) in order to prevent propagation.
Reimplemented from QObject.
Definition at line 491 of file qiosmenu.mm.
void QIOSMenu::handleItemSelected | ( | QIOSMenuItem * | menuItem | ) |
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 328 of file qiosmenu.mm.
|
inlinestatic |
Definition at line 111 of file qiosmenu.h.
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 567 of file qiosmenu.mm.
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 574 of file qiosmenu.mm.
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 340 of file qiosmenu.mm.
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 367 of file qiosmenu.mm.
Implements QPlatformMenu.
Definition at line 97 of file qiosmenu.h.
|
overridevirtual |
Reimplemented from QPlatformMenu.
Definition at line 377 of file qiosmenu.mm.
Implements QPlatformMenu.
Definition at line 362 of file qiosmenu.mm.
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 372 of file qiosmenu.mm.
|
overridevirtual |
Reimplemented from QPlatformMenu.
Definition at line 393 of file qiosmenu.mm.
|
overridevirtual |
Implements QPlatformMenu.
Definition at line 347 of file qiosmenu.mm.
|
inlineoverridevirtual |
Implements QPlatformMenu.
Definition at line 94 of file qiosmenu.h.