异形窗口,设置隐藏主窗体
setAttribute(Qt::WA_TranslucentBackground);
无边框、置顶
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint)
无边框且保留尺寸变化
setWindowFlags(Qt::CustomizeWindowHint)
子类化QWidget,为避免样式失效,可设置
setAttribute(Qt::WA_StyledBackground, true);