Obsolete Members for SystemTrayIcon

The following members of QML type SystemTrayIcon 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

特性

特性文档编制

[read-only] available : bool

This property holds whether the system tray is available.

geometry : rect

This property holds the geometry of the system tray icon.

This property was introduced in Qt.labs.platform 1.1 (Qt 5.12).

icon group

icon.source : url

icon.name : string

icon.mask : bool

This property holds the system tray icon.

SystemTrayIcon {
    icon.mask: true
    icon.source: "qrc:/images/tray-icon.png"
}
										

This property group was introduced in Qt.labs.platform 1.1 (Qt 5.12).

This property holds a menu for the system tray icon.

[read-only] supportsMessages : bool

This property holds whether the system tray icon supports notification messages.

另请参阅 showMessage() .

tooltip : string

This property holds the tooltip of the system tray icon.

visible : bool

This property holds whether the system tray icon is visible.

默认值为 false .