etop-wesley / hac

1 stars 0 forks source link

backgroud icon performance #31

Open etop-wesley opened 13 years ago

etop-wesley commented 13 years ago

we add a custom feature for QPushButton and QLabel(not yet), which support drawing background from a QIcon(state, mode etc),

we draw the background ourself, but the Qt paint system would also initilied the widget background for you before running into QWidget::paintEvent(), so , I think I can make a little performance at this point.

etop-wesley commented 13 years ago

Qt::WA_OpaquePaintEvent Qt::WA_NoSystemBackground QWidget::setAutoFillBackground(false)