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 |
| 31 |
Tags
- swift
- Excel
- pandas
- ASP
- Unity
- urllib
- mssql
- IOS
- Linux
- 맛집
- 다이어트
- MySQL
- port
- tensorflow
- ubuntu
- sqlite
- PER
- MS-SQL
- javascript
- 라즈베리파이
- PyQt5
- node.js
- 리눅스
- python
- 유니티
- flutter
- PyQt
- 함수
- GIT
- 날짜
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