CopperSpice API  1.7.2
QPlatformMenu Class Referenceabstract

Abstract base class for a native menu. More...

Inheritance diagram for QPlatformMenu:
QObject

Public Signals

void aboutToHide ()
 
void aboutToShow ()
 
- Public Signals inherited from QObject
void destroyed (QObject *obj=nullptr)
 
void objectNameChanged (const QString &objectName)
 

Public Methods

virtual QPlatformMenuItemcreateMenuItem () const
 
virtual QPlatformMenu * createSubMenu () const
 
virtual void dismiss ()
 
virtual void insertMenuItem (QPlatformMenuItem *menuItem, QPlatformMenuItem *before) = 0
 
virtual bool isEnabled () const
 
virtual QPlatformMenuItemmenuItemAt (int position) const = 0
 
virtual QPlatformMenuItemmenuItemForTag (quintptr tag) const = 0
 
virtual void removeMenuItem (QPlatformMenuItem *menuItem) = 0
 
virtual void setEnabled (bool enabled) = 0
 
virtual void setFont (const QFont &font)
 
virtual void setIcon (const QIcon &icon) = 0
 
virtual void setMenuType (MenuType type)
 
virtual void setMinimumWidth (int width)
 
virtual void setTag (quintptr tag) = 0
 
virtual void setText (const QString &text) = 0
 
virtual void setVisible (bool visible) = 0
 
virtual void showPopup (const QWindow *parentWindow, const QRect &targetRect, const QPlatformMenuItem *item)
 
virtual void syncMenuItem (QPlatformMenuItem *menuItem) = 0
 
virtual void syncSeparatorsCollapsible (bool enable) = 0
 
virtual quintptr tag () const = 0
 
- Public Methods inherited from QObject
 QObject (QObject *parent=nullptr)
 
 ~QObject ()
 
bool blockSignals (bool block)
 
const QList< QObject * > & children () const
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool connect (const QObject *sender, const QString &signalMethod, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
bool disconnect (const QObject *receiver, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod, const QString &location, const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
bool disconnect (const QString &signalMethod=QString (), const QObject *receiver=nullptr, const QString &slotMethod=QString ()) const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QStringdynamicPropertyNames () const
 
virtual bool event (QEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
template<typename T >
findChild (const QString &childName=QString ()) const
 
template<class T >
QList< T > findChildren (const QRegularExpression &regExp, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
template<class T >
QList< T > findChildren (const QString &objName=QString (), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 
bool inherits (const QString &className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
QObject * parent () const
 
template<class T = QVariant>
property (const QString &name) const
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const QString &name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 
QThreadthread () const
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Methods inherited from QObject
static bool connect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection, const QString &location=QString ())
 
static bool connect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod, Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...), Qt::ConnectionType type=Qt::AutoConnection)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool connect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotLambda, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signalMethod, const QObject *receiver, const QMetaMethod &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QObject *receiver, const QString &slotMethod)
 
static bool disconnect (const QObject *sender, const QString &signalMethod, const QString &location, const QObject *receiver, const QString &slotMethod)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class SlotClass , class... SlotArgs, class SlotReturn >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, SlotReturn (SlotClass::*slotMethod)(SlotArgs...))
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, std::nullptr_t slotMethod=nullptr)
 
template<class Sender , class SignalClass , class... SignalArgs, class Receiver , class T >
static bool disconnect (const Sender *sender, void (SignalClass::*signalMethod)(SignalArgs...), const Receiver *receiver, T slotMethod)
 
static QMetaObjectstaticMetaObject ()
 
static QString tr (const char *text, const char *comment=nullptr, std::optional< int > numArg=std::optional< int >())
 
- Protected Methods inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signalMethod) const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signalMethod) const
 
bool isSignalConnected (const QMetaMethod &signalMethod) const
 
int receivers (const QString &signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

An abstract base class for a native menu.

Method Documentation

void QPlatformMenu::aboutToHide ( )
signal

Documentation pending.

void QPlatformMenu::aboutToShow ( )
signal

Documentation pending.

QPlatformMenuItem * QPlatformMenu::createMenuItem ( ) const
virtual

Documentation pending.

QPlatformMenu * QPlatformMenu::createSubMenu ( ) const
virtual

Documentation pending.

void QPlatformMenu::dismiss ( )
inlinevirtual

Documentation pending.

void QPlatformMenu::insertMenuItem ( QPlatformMenuItem menuItem,
QPlatformMenuItem before 
)
pure virtual

Documentation pending.

bool QPlatformMenu::isEnabled ( ) const
inlinevirtual

Documentation pending.

QPlatformMenuItem * QPlatformMenu::menuItemAt ( int  position) const
pure virtual

Documentation pending.

QPlatformMenuItem * QPlatformMenu::menuItemForTag ( quintptr  tag) const
pure virtual

Documentation pending.

void QPlatformMenu::removeMenuItem ( QPlatformMenuItem menuItem)
pure virtual

Documentation pending.

void QPlatformMenu::setEnabled ( bool  enabled)
pure virtual

Documentation pending.

void QPlatformMenu::setFont ( const QFont font)
inlinevirtual

Documentation pending.

void QPlatformMenu::setIcon ( const QIcon icon)
pure virtual

Documentation pending.

void QPlatformMenu::setMenuType ( MenuType  type)
inlinevirtual

Documentation pending.

void QPlatformMenu::setMinimumWidth ( int  width)
inlinevirtual

Documentation pending.

void QPlatformMenu::setTag ( quintptr  tag)
pure virtual

Documentation pending.

void QPlatformMenu::setText ( const QString text)
pure virtual

Documentation pending.

void QPlatformMenu::setVisible ( bool  visible)
pure virtual

Documentation pending.

void QPlatformMenu::showPopup ( const QWindow parentWindow,
const QRect targetRect,
const QPlatformMenuItem item 
)
inlinevirtual

Documentation pending.

void QPlatformMenu::syncMenuItem ( QPlatformMenuItem menuItem)
pure virtual

Documentation pending.

void QPlatformMenu::syncSeparatorsCollapsible ( bool  enable)
pure virtual

Documentation pending.

quintptr QPlatformMenu::tag ( ) const
pure virtual

Documentation pending.