How does QWidget support stylesheet ?
General and Desktop
3
Posts
3
Posters
4.1k
Views
1
Watching
-
wrote on 18 Nov 2010, 12:52 last edited by
hi,all.
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.
-
wrote on 18 Nov 2010, 12:57 last edited by
Have you read the "Qt Style Sheets":http://doc.qt.nokia.com/latest/stylesheet.html documentation?
-
wrote on 24 Nov 2010, 17:53 last edited by
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
1/3