fix:mac上无边框窗口全屏有问题,暂时屏蔽

This commit is contained in:
rankun 2019-01-27 15:43:06 +08:00
parent 097dcb0b8a
commit 4b862cf43a
3 changed files with 10 additions and 6 deletions

View file

@ -6,19 +6,19 @@
<rect>
<x>0</x>
<y>0</y>
<width>560</width>
<height>577</height>
<width>502</width>
<height>600</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>560</width>
<width>502</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>560</width>
<width>502</width>
<height>16777215</height>
</size>
</property>

View file

@ -79,11 +79,13 @@ void VideoForm::initUI()
}
setAttribute(Qt::WA_DeleteOnClose);
// TODO mac: Qt::FramelessWindowHit full screen is abnormal
#ifndef Q_OS_OSX
// 去掉标题栏
setWindowFlags(Qt::FramelessWindowHint);
setWindowFlags(Qt::FramelessWindowHint);
// 根据图片构造异形窗口
setAttribute(Qt::WA_TranslucentBackground);
#endif
setMouseTracking(true);
ui->loadingWidget->setAttribute(Qt::WA_DeleteOnClose);
ui->videoWidget->setMouseTracking(true);

View file

@ -1,3 +1,5 @@
// TODO mac: Qt::FramelessWindowHit full screen is abnormal
工具栏扩展(模拟点击指定次数等)
模拟点击改用手指(注意:辅助按键就都没了)