隐藏窗口标题栏:
this->setWindowFlags(Qt::FramelessWindowHint);
设置窗口属性:
this->setAttribute(Qt::WA_TranslucentBackground,true); //透明
this->setAttribute(Qt::WA_ShowWithoutActivating,true); //不获取焦点(按键焦点)
隐藏窗口标题栏:
this->setWindowFlags(Qt::FramelessWindowHint);
设置窗口属性:
this->setAttribute(Qt::WA_TranslucentBackground,true); //透明
this->setAttribute(Qt::WA_ShowWithoutActivating,true); //不获取焦点(按键焦点)