4#ifndef QSYSTEMTRAYICON_H
5#define QSYSTEMTRAYICON_H
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qobject.h>
10#ifndef QT_NO_SYSTEMTRAYICON
12#include <QtGui/qicon.h>
47 QMenu *contextMenu()
const;
56 static bool isSystemTrayAvailable();
57 static bool supportsMessages();
61 QRect geometry()
const;
65 void setVisible(
bool visible);
66 inline void show() { setVisible(
true); }
67 inline void hide() { setVisible(
false); }
The QIcon class provides scalable icons in different modes and states.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\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 show()
Shows the icon in the system tray.
void hide()
Hides the system tray entry.
Combined button and popup list for selecting options.
decorationRoleName setToolTip
myAction setIcon(SomeIcon)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent