7#include <QtWidgets/qsystemtrayicon.h>
18 emit activated(static_cast<ActivationReason>(reason));
53 m_systray->setContextMenu(widgetMenu->
menu());
91#include "moc_qwidgetplatformsystemtrayicon_p.cpp"
The QIcon class provides scalable icons in different modes and states.
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.
\inmodule QtCore\reentrant
T * data() const noexcept
Returns the value of the pointer referenced by this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QSystemTrayIcon class provides an icon for an application in the system tray.
void activated(QSystemTrayIcon::ActivationReason reason)
This signal is emitted when the user activates the system tray icon.
ActivationReason
This enum describes the reason the system tray was activated.
MessageIcon
This enum describes the icon that is shown when a balloon message is displayed.
void messageClicked()
This signal is emitted when the message displayed using showMessage() was clicked by the user.
void setToolTip(const QString &tip)
void show()
Shows the icon in the system tray.
void showMessage(const QString &title, const QString &msg, const QIcon &icon, int msecs=10000)
static bool isSystemTrayAvailable()
Returns true if the system tray is available; otherwise returns false.
static bool supportsMessages()
Returns true if the system tray supports balloon messages; otherwise returns false.
void hide()
Hides the system tray entry.
void setIcon(const QIcon &icon)
Combined button and popup list for selecting options.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent