Qt點滴 QLabel Disabled時 圖片變灰

void QLabel::paintEvent(QPaintEvent *)
{this

    .......
#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);
    }
}圖片