7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qwidget.h>
9#include <QtCore/qstring.h>
10#include <QtGui/qicon.h>
11#include <QtGui/qaction.h>
13#if defined(Q_OS_MACOS) || defined(Q_QDOC)
29 Q_DECLARE_PRIVATE(
QMenu)
31 Q_PROPERTY(
bool tearOffEnabled READ isTearOffEnabled WRITE setTearOffEnabled)
34 Q_PROPERTY(
bool separatorsCollapsible READ separatorsCollapsible WRITE setSeparatorsCollapsible)
35 Q_PROPERTY(
bool toolTipsVisible READ toolTipsVisible WRITE setToolTipsVisible)
43#if QT_WIDGETS_REMOVED_SINCE(6, 3)
46#if !QT_CONFIG(shortcut)
49 const QObject *receiver,
const char* member);
53#if QT_CONFIG(shortcut)
54#if QT_DEPRECATED_SINCE(6, 4)
60 const QObject *receiver,
const char* member,
64 template<
typename Functor>
66 template<
typename Functor>
68 template<
typename Functor>
70 template<
typename Functor>
74 template<
class Obj,
typename Func1>
76 inline typename std::enable_if<!std::is_same<const char*, Func1>::value
84 template <
typename Func1>
91 template<
class Obj,
typename Func1>
93 inline typename std::enable_if<!std::is_same<const char*, Func1>::value
102 template <
typename Func1>
127 bool isEmpty()
const;
130 void setTearOffEnabled(
bool);
131 bool isTearOffEnabled()
const;
133 bool isTearOffMenuVisible()
const;
134 void showTearOffMenu();
136 void hideTearOffMenu();
138 void setDefaultAction(
QAction *);
139 QAction *defaultAction()
const;
141 void setActiveAction(
QAction *act);
157 {
return qobject_cast<QMenu *>(action->menuObject()); }
169#if defined(Q_OS_MACOS) || defined(Q_QDOC)
171 void setAsDockMenu();
174 bool separatorsCollapsible()
const;
175 void setSeparatorsCollapsible(
bool collapse);
177 bool toolTipsVisible()
const;
178 void setToolTipsVisible(
bool visible);
187 int columnCount()
const;
194#if QT_CONFIG(wheelevent)
195 void wheelEvent(QWheelEvent *)
override;
208 void internalDelayedPopup();
220 Q_DISABLE_COPY(
QMenu)
The QActionEvent class provides an event that is generated when a QAction is added,...
The QAction class provides an abstraction for user commands that can be added to different user inter...
The QComboBox widget is a combined button and popup list.
The QHideEvent class provides an event which is sent after a widget is hidden.
The QIcon class provides scalable icons in different modes and states.
The QKeyEvent class describes a key event.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
The QPaintEvent class contains event parameters for paint events.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
#define QT_REQUIRE_CONFIG(feature)
#define QT_DEPRECATED_VERSION_X_6_4(text)
myAction setIcon(SomeIcon)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent