[cpp]view plain copy
- LoginDlg lDlg;//定义对话框
- QPalette paletteL;
- paletteL.setBrush(QPalette::Background,QBrush(QPixmap("./mb.jpg")));//相对路径放到build-desktop文件夹下
- lDlg.setPalette(paletteL);//设置背景
http://blog.csdn.net/ei__nino/article/details/7305234
时间: 2024-10-19 04:11:54