QT中窗口如何隐藏最大话按钮 和设置背景图片

 

 

 

LoginDialog w; w.setWindowFlags((Qt::WindowCloseButtonHint)|(Qt::WindowMinimizeButtonHint)|(Qt::WindowStaysOnTopHint)); w.setMinimumSize(400,280); w.setMaximumSize(400,280); QPalette pal; pal.setBrush(QPalette::Window,QBrush(QPixmap("./images/bg.png"))); w.setPalette(pal); w.show();

你可能感兴趣的:(qt)