How can I import qt’s stylesheet .qss file to application?
In HTML we use
<link type="text/css" rel="stylesheet" href="styles.css">
And how it can be done in PyQt?
Or where can I read about it? Can not google it or find it in Qt’s docs.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The .qss file is a simple text file.
If you want to apply a style sheet to your application,
you have to load the .qss file content in a QString object
and pass it to setStyleSheet() app method.