일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- PyQt
- UIButton
- Chrats
- 개발
- UITableView
- Apple
- Storyboard
- modal
- library
- 그래프
- Xcode
- button
- Python
- 어플리케이션
- UIKit
- PyQt5
- Android
- alamofire
- Swift
- Chart
- ios
- 개발자
- graph
- cocoapods
- kotlin
- 라이브러리
- ui
- androidstudio
- charts
- TableView
Archives
- Today
- Total
Jiwift
[Python/PyQt] 버튼 pressed 마우스 눌렀을 때 색 변경 본문
반응형
QPushButton{
border-color: rgb(255, 200, 28);
border-style : solid;
border-width : 5px;
border-radius : 30px;
}
QPushButton:hover{
background-color : rgb(200, 255, 30);
border-color : rgb(255, 200, 28);
border-style : solid;
border-width : 5px;
border-radius : 30px;
}
QPushButton:pressed {
background-color : rgb(200, 100, 30);
border-color : rgb(255, 200, 28);
border-style : solid;
border-width : 5px;
border-radius : 30px;
}
QPushButton에 스타일을 적용하는 것이다. ':hover', ':pressed'와 같이 상태별로 스타일을 변경할 수 있다.
반응형
'다른 개발 > Python' 카테고리의 다른 글
[Python] FCM Token을 이용한 Push Notification 메세지 전송 (0) | 2023.06.10 |
---|---|
[Python] PyTest 설치와 간단한 실행 (0) | 2022.12.31 |
[Python/PyQt] 버튼 hover 마우스 올렸을 때 색 변경 (0) | 2022.12.31 |
[Python/PyQt] 위젯 선 종류 / border-style (0) | 2022.12.31 |
[Python/PyQt] 위젯 선 두께 / border-width (0) | 2022.12.31 |