mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-04 06:38:39 +00:00
fix:mac上无边框窗口全屏有问题,暂时屏蔽
This commit is contained in:
parent
097dcb0b8a
commit
4b862cf43a
3 changed files with 10 additions and 6 deletions
|
@ -6,19 +6,19 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>560</width>
|
<width>502</width>
|
||||||
<height>577</height>
|
<height>600</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>560</width>
|
<width>502</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>560</width>
|
<width>502</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -79,11 +79,13 @@ void VideoForm::initUI()
|
||||||
}
|
}
|
||||||
|
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
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);
|
setAttribute(Qt::WA_TranslucentBackground);
|
||||||
|
#endif
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
ui->loadingWidget->setAttribute(Qt::WA_DeleteOnClose);
|
ui->loadingWidget->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
ui->videoWidget->setMouseTracking(true);
|
ui->videoWidget->setMouseTracking(true);
|
||||||
|
|
2
TODO.txt
2
TODO.txt
|
@ -1,3 +1,5 @@
|
||||||
|
// TODO mac: Qt::FramelessWindowHit full screen is abnormal
|
||||||
|
|
||||||
工具栏扩展(模拟点击指定次数等)
|
工具栏扩展(模拟点击指定次数等)
|
||||||
|
|
||||||
模拟点击改用手指(注意:辅助按键就都没了)
|
模拟点击改用手指(注意:辅助按键就都没了)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue