Qt Extended Home · Index · Classes · Headers · Overviews codeless banner

TrayIcon Class Reference

The TrayIcon class creates an icon in the system tray. More...

    #include <TrayIcon>

Inherits QObject.

Public Functions

Signals

Additional Inherited Members


Detailed Description

The TrayIcon class creates an icon in the system tray.

The system tray (also known as the notification area) is a useful location for long-running but minimally-interacting applications to display status information.

This class uses QSystemTrayIcon or a home-grown solution ported from Qt Extended Desktop 2.

This class also handles the Dock menu on Mac OS X but not clicks on the Dock icon. Those are handled by the QtopiaDesktopApplication::macEventFilter() function.


Member Function Documentation

TrayIcon::TrayIcon ( QObject * parent = 0 )

Construct a TrayIcon with parent as the owning QObject. Use the installed() function to determine if it is attached to a system tray.

TrayIcon::~TrayIcon ()   [virtual]

Destructor.

void TrayIcon::clicked ()   [signal]

This signal is emitted when the tray icon is clicked.

void TrayIcon::hide ()

Hide the system tray icon.

bool TrayIcon::installed ()

Return true if there was a system tray that could be attached to.

void TrayIcon::quit ()   [signal]

This signal is emitted when the quit entry is selected from the tray menu.

void TrayIcon::show ()

Attempt to show the system tray icon.

void TrayIcon::sync ()   [signal]

This signal is emitted when the sync entry is selected from the tray menu.


Copyright © 2009 Trolltech
Qt Extended Sync Agent Documentation