How does QWidget support stylesheet ?
as we know ,the widget supports stylesheet. but i read the qwidget source code , i find the function paintevent() doing nothing.
anybody can tell me
how does the qwidget support stylesheet ?
where can i find the information?
thanks a lot.
Have you read the "Qt Style Sheets":http://doc.qt.nokia.com/latest/stylesheet.html documentation?
The stylesheet support is done by a widget style, internally. I.e. a QStyle subclass. So if you're looking for the code, it will be in src/gui/styles/qstylesheetstyle.cpp