setAttribute(Qt::WA_TranslucentBackground); setWindowFlags(Qt::CustomizeWindowHint|Qt::FramelessWindowHint); //窗口无边框