Qt常用的窗口属性设置
//设置窗口无边框、顶置
setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
//去除窗口放大缩小按钮
setWindowFlags(windowFlags() &~ Qt::WindowMinMaxButtonsHint);
//使窗口在关闭后自动释放资源
setAttribute(Qt::WA_DeleteOnClose, true);
//设置窗口透明
setAttribute(Qt::WA_TranslucentBackground);