From f6458955eed1ef948bc5c41008ed470dde42a80d Mon Sep 17 00:00:00 2001 From: wangwenx190 <2546789017@qq.com> Date: Sun, 30 Jul 2017 22:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BFm=5Fpreview=E6=88=90=E4=B8=BA=E4=B8=80?= =?UTF-8?q?=E4=B8=AATool=20Window=EF=BC=8C=E8=BF=99=E6=A0=B7=E5=AE=83?= =?UTF-8?q?=E5=B0=B1=E4=B8=8D=E4=BC=9A=E6=98=BE=E7=A4=BA=E5=9C=A8=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=A0=8F=E4=B8=8A=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/player/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/player/MainWindow.cpp b/examples/player/MainWindow.cpp index 81a668ebf..1fd88f644 100644 --- a/examples/player/MainWindow.cpp +++ b/examples/player/MainWindow.cpp @@ -1325,7 +1325,7 @@ void MainWindow::onTimeSliderHover(int pos, int value) m_preview->preview(); const int w = Config::instance().previewWidth(); const int h = Config::instance().previewHeight(); - m_preview->setWindowFlags(m_preview->windowFlags() |Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); + m_preview->setWindowFlags(Qt::Tool |Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint); m_preview->resize(w, h); m_preview->move(gpos - QPoint(w/2, h)); m_preview->show();