SystemTrayIcon
Qt Base Class: QSystemTrayIcon
Signature: QSystemTrayIcon(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], parent: Optional[PySide6.QtCore.QObject] = None) -> None
QSystemTrayIcon(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QSystemTrayIcon PySide6.QtWidgets QSystemTrayIcon(self, icon: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap], parent: Optional[PySide6.QtCore.QObject] \= None) -> None |
⋔ Inheritance diagram
graph TD
1473296339824["widgets.SystemTrayIcon"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473365443216["QtWidgets.QSystemTrayIcon"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473296339824
140713234304496 --> 1473299815024
1473365443216 --> 1473296339824
1473288842240 --> 1473365443216
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: ObjectMixin
, QSystemTrayIcon
Icon for an application in the system tray.
Source code in prettyqt\widgets\systemtrayicon.py
set_icon(icon: datatypes.IconType)
Set the system tray icon.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
icon |
IconType
|
icon to use |
required |
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString | |
toolTip |
QString | |
icon |
QIcon | |
visible |
bool |