void QLabel::paintEvent(QPaintEvent *)
{
.......
#endif
if (d->pixmap && !d->pixmap->isNull()) {
QPixmap pix;
......
} else
pix = *d->pixmap;
QStyleOption opt;
opt.initFrom(this);
if (!isEnabled()) // Disabled时 图片变灰!!!!!!!!!!!!!!!!!
pix = style->generatedIconPixmap(QIcon::Disabled, pix, &opt);
style->drawItemPixmap(&painter, cr, align, pix);
}
}