7#include <QtGui/qaction.h>
8#include <QtWidgets/qmenu.h>
26 return m_action.
data();
42 m_action->
setMenu(widgetMenu ? widgetMenu->
menu() :
nullptr);
75#if QT_CONFIG(shortcut)
94#include "moc_qwidgetplatformmenuitem_p.cpp"
The QAction class provides an abstraction for user commands that can be added to different user inter...
void setMenuRole(MenuRole menuRole)
void hovered()
This signal is emitted when an action is highlighted by the user; for example, when the user pauses w...
MenuRole
This enum describes how an action should be moved into the application menu on \macos.
void setIcon(const QIcon &icon)
void setMenu(T m)
Sets the menu contained by this action to the specified menu.
void setSeparator(bool b)
If b is true then this action will be considered a separator.
void setFont(const QFont &font)
void triggered(bool checked=false)
This signal is emitted when an action is activated by the user; for example, when the user clicks a m...
void setText(const QString &text)
The QIcon class provides scalable icons in different modes and states.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
QObject * parent() const
Returns a pointer to the parent object.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void setParent(QObject *parent)
Makes the object a child of parent.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei const GLuint GLboolean enabled
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent