<div dir="ltr">Hi , <br><br>I want to include a css file to pyqt application , i wrote the following code , but it is not effecting the properties of label <br><br>my python code is this<br><br>#!/usr/bin/python<br>import os ,sys<br>
from PyQt4.QtCore import *<br>from PyQt4.QtGui import *<br>file_path = QString("css_file.qss")<br>app =QApplication(sys.argv)<br>label =QLabel("message")<br>label.setStyleSheet(file_path)<br>label.show()<br>
app.exec_()<br><br>and "css_file.qss" containing this text<br><br>.QLabel {<br>font-weight: bold;<br>font-size: 15px;<br>color : green;<br>}<br><br></div>