Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |
Tags
- MS-SQL
- node.js
- 리눅스
- GIT
- tensorflow
- sqlite
- PER
- pandas
- ASP
- IOS
- 함수
- 유니티
- flutter
- PyQt5
- PyQt
- Unity
- 맛집
- port
- urllib
- ubuntu
- Linux
- swift
- 날짜
- mssql
- javascript
- Excel
- python
- 라즈베리파이
- 다이어트
- MySQL
Archives
목록setPixmap (1)
아미(아름다운미소)
python PyQT 에서 이미지를 윈도우에 표시하는 방법
How to display an image onto a PyQT window QLabel은 setPixmap 메서드를 가지고 있기 때문에 이미지를 표시 할 수 있습니다. 예제) lb = QtGui.QLabel(self) pixmap = QtGui.QPixmap("{경로/파일}") height_label = 100 lb.resize(self.width(), height_label) lb.setPixmap(pixmap.scaled(lb.size(), QtCore.Qt.IgnoreAspectRatio)) self.show()
랭귀지/python
2018. 12. 29. 16:03