4#ifndef QWINDOWSSYSTEMTRAYICON_H
5#define QWINDOWSSYSTEMTRAYICON_H
7#include <QtGui/qicon.h>
8#include <QtGui/qpa/qplatformsystemtrayicon.h>
10#include <QtCore/qpointer.h>
11#include <QtCore/qstring.h>
12#include <QtCore/qt_windows.h>
42#ifndef QT_NO_DEBUG_STREAM
47 bool isInstalled()
const {
return m_hwnd !=
nullptr; }
48 bool ensureInstalled();
50 bool sendTrayMessage(DWORD msg);
51 bool setIconVisible(
bool visible);
56 HWND m_hwnd =
nullptr;
57 HICON m_hIcon =
nullptr;
59 bool m_ignoreNextMouseRelease =
false;
60 bool m_visible =
false;
63#ifndef QT_NO_DEBUG_STREAM
The QIcon class provides scalable icons in different modes and states.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Windows native system tray icon.
void cleanup() override
This method is called to cleanup the platform dependent implementation.
bool supportsMessages() const override
Returns true if the system tray supports messages on the platform.
bool isSystemTrayAvailable() const override
Returns true if the system tray is available on the platform.
bool winEvent(const MSG &message, long *result)
void formatDebug(QDebug &d) const
void updateMenu(QPlatformMenu *) override
This method is called when the system tray menu did change.
QPlatformMenu * createMenu() const override
This method allows platforms to use a different QPlatformMenu for system tray menus than what would n...
void updateToolTip(const QString &tooltip) override
This method is called when the tooltip text did change.
void init() override
This method is called to initialize the platform dependent implementation.
void updateIcon(const QIcon &icon) override
This method is called when the icon did change.
void showMessage(const QString &title, const QString &msg, const QIcon &icon, MessageIcon iconType, int msecs) override
Shows a balloon message for the entry with the given title, message msg and icon for the time specifi...
QRect geometry() const override
This method returns the geometry of the platform dependent system tray icon on the screen.
~QWindowsSystemTrayIcon() override
Combined button and popup list for selecting options.
GLuint GLsizei const GLchar * message
QDebug operator<<(QDebug d, const QWindowsSystemTrayIcon *)