不让弹窗跟随鼠标位置:
/*取当前所在屏幕位置,根据该位置设置弹窗位置*/
QScreen *screen = QGuiApplication::screens().first();
m_remindDlg.setGeometry(0,0,screen->geometry().width(),screen->geometry().height());
弹窗置顶且隐藏状态栏图标:
this->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::FramelessWindowHint | Qt::Tool);
//永久置顶:
#ifdef Q_OS_WIN32
SetWindowPos((HWND)this->winId(), HWND_TOPMOST, this->pos().x(), this->pos().y(), 0, 0, SWP_NOSIZE);
#endif