Icon
Qt Base Class: QIcon
Signature: QIcon(self) -> None
QIcon(self, engine: PySide6.QtGui.QIconEngine) -> None
QIcon(self, fileName: str) -> None
QIcon(self, other: Union[PySide6.QtGui.QIcon, PySide6.QtGui.QPixmap]) -> None
QIcon(self, pixmap: Union[PySide6.QtGui.QPixmap, PySide6.QtGui.QImage, str]) -> None
Base classes
Name | Children | Inherits |
---|---|---|
SerializeMixin prettyqt.utils.serializemixin |
||
QIcon PySide6.QtGui QIcon(self) -> None |
⋔ Inheritance diagram
graph TD
1473245532864["gui.Icon"]
1473299806240["utils.SerializeMixin"]
140713234304496["builtins.object"]
1473299954512["QtGui.QIcon"]
1473291690208["Shiboken.Object"]
1473299806240 --> 1473245532864
140713234304496 --> 1473299806240
1473299954512 --> 1473245532864
1473291690208 --> 1473299954512
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: SerializeMixin
, QIcon
Scalable icons in different modes and states.
Source code in prettyqt\gui\icon.py
from_char(char: str, background: str = 'black', color: str = 'white') -> Self
classmethod
Create a QIcon with a given character.