43 #include <QtWidgets/qtwidgetsglobal.h>
44 #include <QtWidgets/qwidget.h>
45 #include <QtCore/qstring.h>
46 #include <QtGui/qicon.h>
47 #include <QtGui/qaction.h>
49 #if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
65 Q_DECLARE_PRIVATE(
QMenu)
67 Q_PROPERTY(
bool tearOffEnabled READ isTearOffEnabled WRITE setTearOffEnabled)
70 Q_PROPERTY(
bool separatorsCollapsible READ separatorsCollapsible WRITE setSeparatorsCollapsible)
71 Q_PROPERTY(
bool toolTipsVisible READ toolTipsVisible WRITE setToolTipsVisible)
79 #if QT_WIDGETS_REMOVED_SINCE(6, 3)
82 #if !QT_CONFIG(shortcut)
85 const QObject *receiver,
const char* member);
89 #if QT_CONFIG(shortcut)
90 #if QT_DEPRECATED_SINCE(6, 4)
96 const QObject *receiver,
const char* member,
100 template<
typename Functor>
102 template<
typename Functor>
104 template<
typename Functor>
106 template<
typename Functor>
110 template<
class Obj,
typename Func1>
120 template <
typename Func1>
127 template<
class Obj,
typename Func1>
138 template <
typename Func1>
163 bool isEmpty()
const;
166 void setTearOffEnabled(
bool);
167 bool isTearOffEnabled()
const;
169 bool isTearOffMenuVisible()
const;
170 void showTearOffMenu();
172 void hideTearOffMenu();
174 void setDefaultAction(
QAction *);
175 QAction *defaultAction()
const;
177 void setActiveAction(
QAction *act);
193 {
return qobject_cast<QMenu *>(
action->menuObject()); }
205 #if defined(Q_OS_MACOS) || defined(Q_CLANG_QDOC)
207 void setAsDockMenu();
210 bool separatorsCollapsible()
const;
211 void setSeparatorsCollapsible(
bool collapse);
213 bool toolTipsVisible()
const;
214 void setToolTipsVisible(
bool visible);
230 #if QT_CONFIG(wheelevent)
231 void wheelEvent(QWheelEvent *)
override;
244 void internalDelayedPopup();
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 QEnterEvent class contains parameters that describe an enter event.
The QEvent class is the base class of all event classes. Event objects contain event parameters.
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.
The QMouseEvent class contains parameters that describe a mouse event.
The QObject class is the base class of all Qt objects.
virtual void timerEvent(QTimerEvent *event)
The QPaintEvent class contains event parameters for paint events. \inmodule QtGui.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
The QSize class defines the size of a two-dimensional object using integer point precision.
The QString class provides a Unicode character string.
The QTimerEvent class contains parameters that describe a timer event.
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)
#define QT_DEPRECATED_VERSION_X_6_4(text)
#define Q_DISABLE_COPY(Class)
myAction setIcon(SomeIcon)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent