qt 窗体增加背景图

2019-04-15 14:56发布

    QPixmap background("./pic/background.jpg");
    this->setBackgroundPixmap(background);
    this->resize(background.width(),background.height());
    搞定.