42 #ifndef QSYSTEMTRAYICON_H 43 #define QSYSTEMTRAYICON_H 45 #include <QtCore/qobject.h> 47 #ifndef QT_NO_SYSTEMTRAYICON 49 #include <QtGui/qicon.h> 86 void setContextMenu(
QMenu *menu);
87 QMenu *contextMenu()
const;
91 void setIcon(
const QIcon &icon);
94 void setToolTip(
const QString &tip);
96 static bool isSystemTrayAvailable();
97 static bool supportsMessages();
101 MessageIcon icon = Information,
int msecs = 10000);
103 QRect geometry()
const;
104 bool isVisible()
const;
107 void setVisible(
bool visible);
108 inline void show() { setVisible(
true); }
109 inline void hide() { setVisible(
false); }
113 void messageClicked();
131 #endif // QT_NO_SYSTEMTRAYICON 132 #endif // QSYSTEMTRAYICON_H bool visible
whether the system tray entry is visible
#define QT_END_NAMESPACE
This macro expands to.
The QWheelEvent class contains parameters that describe a wheel event.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString toolTip
the tooltip for the system tray entry
QIcon icon
the system tray icon
void show()
Shows the icon in the system tray.
The QMouseEvent class contains parameters that describe a mouse event.
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
void hide()
Hides the system tray entry.
ActivationReason
This enum describes the reason the system tray was activated.
#define Q_DECLARE_PRIVATE(Class)
MessageIcon
This enum describes the icon that is shown when a balloon message is displayed.
void qtsystray_sendActivated(QSystemTrayIcon *i, int r)
The QEvent class is the base class of all event classes.
The QSystemTrayIcon class provides an icon for an application in the system tray. ...
The QIcon class provides scalable icons in different modes and states.