MCPcopy Index your code
hub / github.com/PyQt5/PyQt / setIcon

Method setIcon

Demo/Lib/FramelessWindow.py:106–108  ·  view source on GitHub ↗

设置图标

(self, icon)

Source from the content-addressed store, hash-verified

104 self.titleLabel.setText(title)
105
106 def setIcon(self, icon):
107 """设置图标"""
108 self.iconLabel.setPixmap(icon.pixmap(self.iconSize, self.iconSize))
109
110 def setIconSize(self, size):
111 """设置图标大小"""

Callers 15

_init_treesMethod · 0.80
onScreenShot1Method · 0.80
saveImageMethod · 0.80
doScreenShotMethod · 0.80
saveImageMethod · 0.80
init_uiMethod · 0.80
set_controlMethod · 0.80
parseDataMethod · 0.80
chooseBackgroundColorMethod · 0.80
chooseTextColorMethod · 0.80
chooseWaterColor1Method · 0.80
chooseWaterColor2Method · 0.80

Calls 2

pixmapMethod · 0.80
setPixmapMethod · 0.45

Tested by

no test coverage detected