M
M
m2282282020-04-10 15:47:14
PyQt
m228228, 2020-04-10 15:47:14

How to change window style in PyQt5?

I always have such windows in my programs 5e906a9c4383e903940546.png

How can I make such a window in PyQt5 for example?5e906acda3e3b774084157.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bazarnov, 2020-05-24
@bazden

I faced this problem myself.
Here is the solution: https://pythonbasics.org/pyqt-style/
In short, here is the list of styles: ['Breeze', 'Oxygen', 'QtCurve', 'Windows', 'Fusion']
Exposed via:
app = QApplication( [])
app.setStyle('Windows')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question