Qt 弹窗置顶国定尺寸大小等样式设置
void MyWidgets::setWindowTopFixStyle(QString title, QWidget * widget)
{
widget->setWindowTitle(title);
widget->setWindowFlags(windowFlags() & ~Qt::WindowMinimizeButtonHint
& ~Qt::WindowMaximizeButtonHint | Qt::WindowStaysOnTopHint);
widget->setFixedSize(widget->size());
widget->setAttribute(Qt::WA_QuitOnClose, false);
widget->setAutoFillBackground(true);
widget->setAttribute(Qt::WA_StyledBackground, true);
}