Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyQt5/PyQt
/ setCover
Method
setCover
QFlowLayout/Lib/CoverItemWidget.py:46–48 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
44
self.labelAuthor.setText(playlist_author)
45
46
def
setCover(self, path):
47
self.labelCover.setCoverPath(path)
48
self.labelCover.setPixmap(QPixmap(path))
49
50
def
sizeHint(self):
51
# 每个item控件的大小
Callers
1
onFinished
Method · 0.45
Calls
2
setCoverPath
Method · 0.45
setPixmap
Method · 0.45
Tested by
no test coverage detected