update:全屏模式不显示工具窗口

This commit is contained in:
rankun 2019-02-04 13:57:34 +08:00
parent 093335d3e7
commit e7f8663ce2
3 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,7 @@
#include <QMouseEvent>
#include <QDebug>
#include <QShowEvent>
#include <QHideEvent>
#include "toolform.h"
#include "ui_toolform.h"
@ -58,6 +61,16 @@ void ToolForm::mouseMoveEvent(QMouseEvent *event)
}
}
void ToolForm::showEvent(QShowEvent *event)
{
qDebug() << "show event";
}
void ToolForm::hideEvent(QHideEvent *event)
{
qDebug() << "hide event";
}
void ToolForm::on_fullScreenBtn_clicked()
{
if (m_videoForm) {

View file

@ -24,6 +24,9 @@ protected:
void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
private slots:
void on_fullScreenBtn_clicked();

View file

@ -432,7 +432,9 @@ void VideoForm::paintEvent(QPaintEvent *paint)
void VideoForm::showEvent(QShowEvent *event)
{
Q_UNUSED(event);
showToolFrom();
if (!isFullScreen()) {
showToolFrom();
}
}
void VideoForm::dragEnterEvent(QDragEnterEvent *event)