1.always on top
Qt::WindowFlags flags = windowFlags();
flags |= Qt::FramelessWindowHint; //0x00000800==>remove window frame
flags |= Qt::WindowStaysOnTopHint; //0x00040000==>set always top
setWindowFlags(flags);
2.display on top when called
this->QWidget::showNormal();
if(!this->isActiveWindow())
this->activateWindow();
全站熱搜
留言列表