7#include <QtGui/qtguiglobal.h>
9# include <QtGui/qkeysequence.h>
11#include <QtGui/qicon.h>
12#include <QtCore/qstring.h>
13#include <QtCore/qvariant.h>
14#include <QtCore/qobject.h>
24#if QT_DEPRECATED_SINCE(6,0)
34 Q_PROPERTY(
bool checkable READ isCheckable WRITE setCheckable NOTIFY checkableChanged FINAL)
35 Q_PROPERTY(
bool checked READ isChecked WRITE setChecked NOTIFY toggled)
37 RESET resetEnabled FINAL)
45#if QT_CONFIG(shortcut)
49 Q_PROPERTY(
bool autoRepeat READ autoRepeat WRITE setAutoRepeat NOTIFY changed)
55 Q_PROPERTY(
bool shortcutVisibleInContextMenu READ isShortcutVisibleInContextMenu
56 WRITE setShortcutVisibleInContextMenu NOTIFY changed)
76#if QT_DEPRECATED_SINCE(6,0)
86 template<
typename T = QW
idget*>
88 T parentWidget()
const
93 return static_cast<T
>(
result);
96 template<
typename T = QW
idget*>
98 QList<T> associatedWidgets()
const
101 for (
auto object : associatedObjects())
106 template<
typename T = QGraphicsW
idget*>
108 QList<T> associatedGraphicsWidgets()
const
111 for (
auto object : associatedObjects())
133 void setStatusTip(
const QString &statusTip);
140 Priority priority()
const;
142 void setSeparator(
bool b);
145#if QT_CONFIG(shortcut)
156 void setAutoRepeat(
bool);
157 bool autoRepeat()
const;
163 void setCheckable(
bool);
164 bool isCheckable()
const;
169 bool isChecked()
const;
176 void activate(ActionEvent
event);
178 void setMenuRole(MenuRole menuRole);
179 MenuRole menuRole()
const;
185 template<
typename T = QMenu*>
188 return qobject_cast<T>(menuObject());
190 template<
typename T = QMenu*>
198 bool isIconVisibleInMenu()
const;
200 void setShortcutVisibleInContextMenu(
bool show);
201 bool isShortcutVisibleInContextMenu()
const;
203 bool showStatusText(
QObject *
object =
nullptr);
212 void setChecked(
bool);
214 void setEnabled(
bool);
217 void setVisible(
bool);
238 void setMenuObject(
QObject *
object);
241#ifndef QT_NO_DEBUG_STREAM
The QActionEvent class provides an event that is generated when a QAction is added,...
The QActionGroup class groups actions together.
The QAction class provides an abstraction for user commands that can be added to different user inter...
void hover()
This is a convenience slot that calls activate(Hover).
void checkableChanged(bool checkable)
ActionEvent
This enum type is used when calling QAction::activate()
T menu() const
Returns the menu contained by this action.
void toggled(bool)
This signal is emitted whenever a checkable action changes its isChecked() status.
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 enabledChanged(bool enabled)
void setMenu(T m)
Sets the menu contained by this action to the specified menu.
Priority
This enum defines priorities for actions in user interface.
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 changed()
This signal is emitted when an action has changed.
void trigger()
This is a convenience slot that calls activate(Trigger).
void setDisabled(bool b)
This is a convenience function for the \l enabled property, that is useful for signals–slots connecti...
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.
\macro QT_RESTRICTED_CAST_FROM_ASCII
myinstance setPriority(MyClass::VeryHigh)
list append(new Employee("Blackpool", "Stephen"))
Combined button and popup list for selecting options.
static bool isSeparator(char c)
T qobject_cast(QObject *object)
\variable QObject::staticMetaObject
Q_CORE_EXPORT QDebug operator<<(QDebug, const QObject *)
GLboolean GLboolean GLboolean b
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
decorationRoleName toolTipRoleName setWhatsThis
decorationRoleName setToolTip
#define QT_REQUIRE_CONFIG(feature)
#define QT_DEPRECATED_VERSION_X_6_0(text)
if(qFloatDistance(a, b)<(1<< 7))
[0]
mimeData setData("text/csv", csvData)
myAction setIconVisibleInMenu(true)
myAction setIcon(SomeIcon)
insertRed setText("insert red text")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent