👨🏼‍💻개발/PyQt

PyQt - 윈도우창 투명하게 만들기

Janger 2022. 5. 7. 05:48
728x90

[완전 투명하게 만들기]

Form.setWindowFlags(QtCore.Qt.FramelessWindowHint)
Form.setAttribute(QtCore.Qt.WA_TranslucentBackground)
Form.setStyleSheet("background:transparent;")

 

[불투명도 설정]

Form.setWindowOpacity(0.5)

 

 

출처: 

https://stackoverflow.com/questions/7667552/qt-widget-with-transparent-background

 

Qt Widget with Transparent Background

(I'm using PySide, but I think the answer would be the same/similar for any language bindings). I'm trying to take the shaped clock example, located here, and cause the face of the clock (circle...

stackoverflow.com

 

728x90